Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/public_html/app/Modules/Banners/Resources/Views/admin/ |
{{-- file --}}
<div class="portlet gal">
<div class="portlet-title">
<div class="actions">
<button type="button"
class="btn btn-sm red delete_gallery tooltips"
title="{{ trans('general.action_delete') }}">
<i class="fa fa-remove"></i>
</button>
</div>
</div>
<div class="portlet-body">
<div class="row">
{{-- Image --}}
<div class="col-md-5">
<div class="form-group {{ isset($key) && $errors->has('photo.'.$key) ? 'has-error' : '' }}">
<div class="col-md-9">
<div class="fileinput fileinput-new" data-provides="fileinput">
<div class="fileinput-new thumbnail" style="width:200px;height:150px;">
<img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=banner+image" alt="">
</div>
<div class="fileinput-preview fileinput-exists thumbnail"
style="max-width:200px;max-height:150px;"></div>
<div>
<span class="btn default btn-file">
<span class="fileinput-new">Select image</span>
<span class="fileinput-exists">Change</span>
<input type="file" name="photo[{{ $key }}]">
</span>
<a href="#" class="btn default fileinput-exists" data-dismiss="fileinput">
Remove
</a>
</div>
</div>
@if (isset($key))
<div class="help-block">
{{ $errors->first('photo.'.$key) }}
</div>
@endif
</div>
</div>
</div>
{{-- Fields --}}
<div class="col-md-6">
{{-- Order --}}
<div class="form-group {{ isset($key) && $errors->has('file_order.'.$key) ? 'has-error' : '' }}">
<div class="col-md-9 col-md-offset-3">
<div class="input-group tooltips"
title="{{ trans('banners::banners.form_file_order') }}">
<span class="input-group-addon">
<i class="fa fa-sort-numeric-asc"></i>
</span>
{!! Form::text(
isset($key) ? "file_order[$key]" : "file_order[]",
null,
[
'class' => 'form-control',
'placeholder' => trans('banners::banners.form_file_order')
]
) !!}
@if (isset($key))
<span class="help-block">
{{ $errors->first('file_order.'.$key) }}
</span>
@endif
</div>
</div>
</div>
{{-- Title --}}
<div class="form-group {{ isset($key) && $errors->has('file_title.'.$key) ? 'has-error' : '' }}">
<div class="col-md-9 col-md-offset-3">
<div class="input-group tooltips"
title="{{ trans('banners::banners.form_file_title') }}">
<span class="input-group-addon">
<i class="fa fa-info-circle"></i>
</span>
{!! Form::text(
isset($key) ? "file_title[$key]" : "file_title[]",
null,
[
'class' => 'form-control',
'placeholder' => trans('banners::banners.form_file_title')
]
) !!}
@if (isset($key))
<span class="help-block">
{{ $errors->first('file_title.'.$key) }}
</span>
@endif
</div>
</div>
</div>
{{-- URL --}}
<div class="form-group {{ isset($key) && $errors->has('file_url.'.$key) ? 'has-error' : '' }}">
<div class="col-md-9 col-md-offset-3">
<div class="input-group tooltips"
title="{{ trans('banners::banners.form_file_url') }}">
<span class="input-group-addon">
<i class="fa fa-link"></i>
</span>
{!! Form::text(
isset($key) ? "file_url[$key]" : "file_url[]",
null,
[
'class' => 'form-control',
'placeholder' => trans('banners::banners.form_file_url_placeholder')
]
) !!}
@if (isset($key))
<span class="help-block">
{{ $errors->first('file_url.'.$key) }}
</span>
@endif
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{-- end file --}}