<form class="row g-3 auto-width"action="{!!route('update-insurance', $insurance->id) !!}"  method="post" enctype='multipart/form-data'>
    @csrf
   <div class="col-md-6  mb-1">
        <label  for=""> Insurance Provider</label>
         <select name="insurance_provider" id="insurance_provider" class="form-control">
            <option value="">~select~</option>
            @foreach($account as $account)
                <option value="{{$account->id}} " {{ $insurance->insurance_provider == $account->id ? 'selected' : '' }}>{{$account->name}}</option>
            @endforeach
        </select> 
    </div>
    <div class="col-md-6  mb-1">
        <label  for="">Policy Number</label>
        <div class="input-group">
        <input id="policy_no" class="form-control " type="number" name="policy_no" placeholder=" Policy Number"  value = "{{$insurance->policy_no}}">
        </div>
    </div>
    <div class="col-md-6 mb-1" >
        <label  for="policy_amount">Policy Amount</label>
       <div class="input-group" >
        <input id="" class="form-control " type="number" name="policy_amount" placeholder="  Amount"  value = "{{$insurance->policy_amount}}" >
        </div>
    </div>
    <div class="col-md-6  mb-1" >
        <label  for="policy_percentage">Policy Percentage</label>
       <div class="input-group" >
        <input id="" class="form-control " type="number" name="policy_percentage" placeholder="Policy Percentage"  value = "{{$insurance->policy_percentage}}">
        </div>
    </div>
    <div class="col-md-6  mb-1">
        <label  for="claim_amount">Claim Amount</label>
        <div class="input-group">
        <input id="claim_amount" class="form-control " type="number" name="claim_amount" placeholder=" Claim Amount"  value = "{{$insurance->claim_amount}}">
        </div>

    </div>
</form>