<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('review.store')}}" method="POST" enctype="multipart/form-data">
                @csrf
                <div class="col-12">
                   <div class="row">
                    <div class="col-6 form-group">
                        <label>User Email</label>
                        <select name="byuser" class="form-control" required>
                            @foreach ($user as $item)
                                <option value="{{$item->id}}">{{$item->email}}</option>
                            @endforeach
                        </select>
                    </div>
                    <div class="col-6 form-group">
                        <label>For Car</label>
                        <select name="forcar" class="form-control" required>
                            @foreach ($car as $item)
                                <option value="{{$item->id}}">{{$item->name}}</option>
                            @endforeach
                        </select>
                    </div>

                    <div class="col-md-6 form-group">
                        <label>Review</label>
                        <input type="text" class="form-control" id="" name="review" required="">
                    </div>

                    <div class="col-md-6 form-group">
                        <label>Rating</label>
                        <livewire:rating/>
                    </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>
