@if(session()->has('banner_updated')) @endif @include('includes.form_errors') {{-- @can('read', App\Location::class)
@lang('Location:') @if($banner->location) {{$banner->location->name}} @else @lang('None') @endif

@endcan --}} {!! Form::model($banner, ['method'=>'patch', 'action'=>['ManageBannersController@update', $banner->id], 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}
@if($banner->photo)
Banner


@endif {{-- @if($banner->appPhoto)
Banner


@endif --}}
{!! Form::label('title', __('Title / Alt Image Text:')) !!} {!! Form::text('title', null, ['class'=>'form-control', 'placeholder'=>__('Enter banner title')]) !!}
{{--
{!! Form::label('app_photo', __('Choose APP Banner Image (1024px*555px)'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('app_photo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-files-info").html(files[0].name)']) !!} @lang('No image chosen')
--}}
{!! Form::label('link', __('URL Link:')) !!} {!! Form::text('link', null, ['class'=>'form-control', 'placeholder'=>__('Enter URL link')]) !!}
{{-- --}}
{!! Form::label('description', __('Description:')) !!} {!! Form::textarea('description', null, ['class'=>'form-control', 'placeholder'=>__('Enter banner description')]) !!}
{!! Form::label('position', __('Show in Home Page:')) !!} {!! Form::select('position', [null=>__('None'), 'Main Slider'=>__('Main Slider (1349px*413px)'), 'Below Main Slider'=>__('Below Main Slider - Three Images per row (400px*265px)'), 'Below Main Slider - Two Images per row'=>__('Below Main Slider - Two Images per row (651px*250px )'), 'Below Main Slider - Three Images Layout'=>__('Below Main Slider - Three Images Layout (871px*255px)')], $banner->position, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{{--
{!! Form::label('brand', __('Show in Brand:')) !!} {!! Form::select('brand', [''=>__('None')] + $brands, $banner->brand_id, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('position_brand', __('Position in Brand Page:')) !!} {!! Form::select('position_brand', [null=>__('None'), 'Main Slider'=>__('Main Slider'), 'Below Main Slider'=>__('Below Main Slider - Three Images per row'), 'Below Main Slider - Two Images per row'=>__('Below Main Slider - Two Images per row'), 'Below Main Slider - Three Images Layout'=>__('Below Main Slider - Three Images Layout'), 'Below Filters'=>__('Below Filters')], $banner->position_brand, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
--}} {{-- @if(count($categories) > 0)
@lang('Show in Category:') @if($banner->category_id == 0) @lang('None')@endif
@endif @if($banner->category)
@endif
{!! Form::label('position_category', __('Position in Category Page:')) !!} {!! Form::select('position_category', [null=>__('None'), 'Main Slider'=>__('Main Slider'), 'Below Main Slider'=>__('Below Main Slider - Three Images per row'), 'Below Main Slider - Two Images per row'=>__('Below Main Slider - Two Images per row'), 'Below Main Slider - Three Images Layout'=>__('Below Main Slider - Three Images Layout'), 'Below Filters'=>__('Below Filters')], $banner->position_category, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
--}}
{!! Form::label('photo', __('Choose Slider Image'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('photo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info").html(files[0].name)']) !!} @lang('No image chosen')
{!! Form::label('priority', __('Priority:')) !!} {!! Form::number('priority', null, ['class'=>'form-control', 'placeholder'=>__('Enter priority'), 'min'=>'1']) !!}
{!! Form::label('status', __('Status:')) !!} {!! Form::select('status', [0=>__('inactive'), 1=>__('active')], $banner->is_active, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::submit(__('Update'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}