<form class="row g-3 auto-width attachment" action="{{ route('account-attachments.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    <input type="hidden" name="account_id" data-id="{!! $id !!}">
    <div class="col-md-6">
        <label for="title" class="form-label">Title <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="title" name="title" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_title" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="file" class="form-label">Attachment <span class="text-danger"><b>*</b></span></label>
        <input type="file" class="form-control" id="file" name="file" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_file" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="details" class="form-label">Details </label>
        <textarea class="form-textarea" rows="1" name="details"></textarea>
        <span class="text-danger error_details" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="expiry_date" class="form-label">Expiry date</label>
        <input type="text" class="form-control datepicker" id="expiry_date" name="expiry_date" aria-describedby="inputGroupPrepend" required autocomplete="off" readonly>
        <span class="text-danger error_expiry_date" style="display: none;">This field is required.</span>
    </div>
</form>
