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