<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('contents.update',$pages->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>Heading</label>
                        <input type="text" class="form-control" value="{{$pages->name}}" name="name" placeholder="Enter Name" required="">
                     </div>
                     <div class="col-md-6 form-group">
                        <label>Arabic Heading</label>
                        <input type="text" class="form-control" value="{{$pages->name_a}}" name="name_a" placeholder="Enter Name" required="">
                     </div>
                     {{-- <div class="col-md-6 form-group">
                        <label>Description</label>
                        <textarea class="form-control" name="description">{{$pages->description}}</textarea>
                     </div>
                     <div class="col-md-6 form-group">
                        <label>Arabic Description</label>
                        <textarea class="form-control" name="description_a">{{$pages->description_a}}</textarea>
                     </div>
                      <div class="col-12">
                        <label>Status</label>
                        <select name="status" class="form-control" required>
                           <option value="1" {{$pages->status == 1 ? 'selected':''}}>Active</option>
                           <option value="0" {{$pages->status == 0 ? 'selected':''}}>Inctive</option>
                        </select>
                     </div>
                     <div class="col-6 m-2">
                        <div class="text-center">
                            <img src="{{env('APP_URL')}}{{Storage::url($pages->image)}}" class="rounded" alt="{{$pages->image}}">
                          </div>
                    </div>
                    <div class="col-6">
                    <div class="form-group">
                        <label for="exampleFormControlFile1">Upload Image</label>
                        <input type="file" class="form-control-file" id="exampleFormControlFile1" name="image">
                    </div>
                    </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>