@extends('admin.layouts.app')

@section('title')
Carousel
@endsection



@section('content')
  {{-- table list starts --}}
  <div class="block-content block-content-full">
    <form action="{{route('admin.carousel.update',$data->id)}}" method="post" enctype="multipart/form-data">
      @csrf
      @method('PUT')
      <div>
        <label>Title:</label>
        <input class="form-control" name="title"  value="{{$data->title}}" >
    </div>
    <div>
        <label>Bangla Title:</label>
        <input class="form-control" name="bn_title"  value="{{$data->bn_title}}" >
    </div>
      <div>
          <label>Image:</label>
          <input class="form-control" name="image" type="file">
          <img src="{{ asset('carousel') }}/{{ $data->image }}" alt="" style="height:80px;" class="img-fluid">
      </div>


      </div>
      <div class="modal-footer">

        <button type="submit" class="btn btn-primary">update changes</button>
      </div>
  </form>
  </div>


@endsection

