<x-app-layout>
    @include('admin.include.sidebar')
    <!-- Page Content  -->
    <div class="wrapper">
       <!-- Sidebar  -->
       <!-- Page Content  -->
       <div id="content">
          
          <div class="navbar-expand-lg navbar-light bg-light">
            <form action="{{route('tax.update',$coupon->id)}}" method="POST" enctype="multipart/form-data">
               @csrf
               @method('PATCH')
               <div class="col-12">
                  <div class="row">
                    <div class="col-6 form-group">
                       <label>Type</label>
                       <select name="type" class="form-control" required>
                          <option value="Percentage" {{$coupon->type == 'Percentage' ? 'selected':''}}>Percentage</option>
                          <option value="Flat" {{$coupon->type == 'Flat' ? 'selected':''}}>Flat</option>
                       </select>
                    </div>
                    <div class="col-md-6 form-group">
                       <label>Label</label>
                       <input type="text" class="form-control" value="{{$coupon->label}}" name="label"required="">
                    </div>
                    <div class="col-md-6 form-group">
                       <label>Value</label>
                       <input type="text" class="form-control" value="{{$coupon->value}}" name="value"required="">
                    </div>
                    <div class="col-md-6 form-group">
                       <label>Priority</label>
                       <input type="text" class="form-control" value="{{$coupon->priority}}" name="priority"required="">
                    </div>
                     <div class="col-md-12">
                        <input type="submit" class="btn btn-success" value="submit">
                     </div>
                  </div>
               </div>
            </form>
          </div>
       </div>
    </div>
  </x-app-layout>