<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('upsell.update',$coupon->id)}}" method="POST" enctype="multipart/form-data">
               @csrf
               @method('PATCH')
               <div class="col-12">
                  <div class="row">
                    <div class="col-md-6 form-group">
                       <label>Name</label>
                       <input type="text" class="form-control" id="" value="{{$coupon->name}}" name="name"required="">
                    </div>
                    <div class="col-md-6 form-group">
                       <label>Price Per Day</label>
                       <input type="text" class="form-control" value="{{$coupon->price}}" id="" name="price"required="">
                    </div>
                    <div class="col-6 form-group">
                       <label>Status</label>
                       <select name="status" class="form-control" required>
                        <option value="1" {{$coupon->status == 1 ? 'selected':''}}>Active</option>
                        <option value="0" {{$coupon->status == 0 ? 'selected':''}}>Inctive</option>
                       </select>
                    </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>