Current File : /home/tradevaly/www/resources/views/backend/pages/Banner/edit.blade.php |
@extends('backend.ayaan.master')
@push('title') Edit Banner @endpush
@push('style')
@endpush
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8 m-auto">
<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-sm-6">
<div class="mb-3">
<label for="example-datetime-local-input" class="col-form-label">Start</label>
<input class="form-control" type="datetime-local" name="start" id="example-datetime-local-input" value="{{ $banner->start }}">
</div>
</div>
<div class="col-sm-6">
<div class="mb-3">
<label for="example-datetime-local-input" class="col-form-label">End</label>
<input class="form-control" type="datetime-local" name="end" id="example-datetime-local-input" value="{{ $banner->end }}">
</div>
</div>
<div class="col-sm-12">
<div class="mb-3">
<div class="templating-select">
<label class="form-label">User</label>
<select class="form-control select2-templating" name="user_id">
<option value="">Select A User</option>
@foreach($users as $user)
<option value="{{ $user->id }}" {{ $user->id == $banner->user_id ? 'selected':' ' }}>{{ $user->name }}</option>
@endforeach
</select>
</div>
</div>
</div>
<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