Current File : /home/tradevaly/new.tradevaly.com.bd/resources/views/backend/pages/Banner/edit.blade.php
@extends('backend.ayaan.master')
@section('title') Edit Banner @endsection
@push('style')

@endpush

@section('content')
<div class="container-fluid">
  <div class="row">
    <div class="col-md-6">
      <div class="card">
        <div class="card-header card-header-icon card-header-info">
          <div class="card-icon">
          </div>
          <h4 class="card-title">{{translate('EDIT  BANNER')}}
          
          </h4>
        </div>
        <div class="card-body">
          <form action="{{url('b2b/component/banner/edit/'.$banner->id)}}" method="POST" enctype="multipart/form-data">
              @csrf
            <div class="row">
              <div class="col-md-3 col-sm-4 pb-3">
                <h4 class="title">{{translate('Change Image')}}</h4>
                <div class="fileinput fileinput-new text-center" data-provides="fileinput">
                  <div class="fileinput-new thumbnail">
                    <img src="{{asset('storage/images/admin/banner/'.$banner->image)}}" alt="{{$banner->alt}}" class='img-fluid'>
                  </div>
                  <div class="fileinput-preview fileinput-exists thumbnail"></div>
                  <div class="d-flex">
                    <span class=" btn-file">
                      <span class="fileinput-new">{{translate('Select image')}}</span>
                      <span class="fileinput-exists">{{translate('Change')}}</span>
                      <input type="file" name="image" />
                    </span>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              
              <div class="col-md-6">
                <div class="form-group">
                  <input type="text" name="link" class="form-control" value="{{$banner->link}}" required>
                </div>
              </div>
            </div>
            <button type="submit" class="btn btn-info pull-right">{{translate('Upload')}}</button>
            <div class="clearfix"></div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
@stop

@push('script')
<script>
</script>
@endpush