Current File : //home/tradevaly/public_html/resources/views/user/pages/advertisment/edit.blade.php
@extends('user.ayaan.master')

@push('title','Edit Banner')

@push('style')

@endpush

@section('content')
<div class="container-fluid">
  <div class="row">
    <div class="col-md-12">
      <div class="card">
        <div class="card-header card-header-icon card-header-info">
          <div class="card-icon">
          </div>
          <h4 class="card-title">{{translate('Modify Your')}} {{ $banner->position }}
          
          </h4>
        </div>
        <div class="card-body">
          <form action="{{ route('user.advertisment.update',$banner->id)}}" method="POST" enctype="multipart/form-data">
              @csrf
              @method('put')
            <div class="form-group mb-3">
                <div class="fileinput-new thumbnail mb-3">
                    <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">
                      <input type="file" name="image" />
                    </span>
                  </div>
             </div>
            <div class="form-group">
                  <input type="text" name="link" class="form-control" placeholder="Enter Your Link" value="{{$banner->link}}" required>
             </div>
             <br/>
            <button type="submit" class="btn btn-info pull-right">{{translate('Upload')}}</button>
            <a href="{{ route('user.advertisment.index')}}" class="btn btn-danger pull-right">Cancel</a>
            <div class="clearfix"></div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
@stop

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