FleetCart/Modules/Media/Resources/views/admin/image_picker/single.blade.php

26 lines
997 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
@hasAccess('admin.media.index')
<div class="single-image-wrapper">
<h4>{{ $title }}</h4>
<button type="button" class="image-picker btn btn-default" data-input-name="{{ $inputName }}">
<i class="fa fa-folder-open m-r-5"></i>{{ trans('media::media.browse') }}
</button>
<div class="clearfix"></div>
<div class="single-image image-holder-wrapper clearfix">
@if (! $file->exists)
<div class="image-holder placeholder">
<i class="fa fa-picture-o"></i>
</div>
@else
<div class="image-holder">
<img src="{{ $file->path }}">
<button type="button" class="btn remove-image" data-input-name="{{ $inputName }}"></button>
<input type="hidden" name="{{ $inputName }}" value="{{ $file->id }}">
</div>
@endif
</div>
</div>
@endHasAccess