@extends('layouts.main') @section('title') {{ __('Slider') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
@can('slider-create')
{!! Form::open(['url' => route('slider.store'), 'files' => true,'class'=>'create-form','id'=>'slider-form','data-pre-submit-function'=>'customValidation']) !!}
{{ Form::label('image', __('Image'), ['class' => 'col-md-12 col-sm-12 col-12 form-label',]) }} {{ Form::file('image', ['class' => 'form-control', 'accept' => 'image/*','data-parsley-required'=>'true']) }} @if (count($errors) > 0) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif
{{ Form::label('item', __('Item'), ['class' => 'col-md-12 col-sm-12 col-form-label','for'=>"items"]) }}
{{__("OR")}}
{{__("OR")}}
{{ Form::label('third_party_link', __('Third Party Link'), ['class' => 'col-md-12 col-sm-12 col-form-label ',]) }} {{ Form::text('link', '', [ 'class' => 'form-control ', 'placeholder' => __('link'), 'id' => 'link', 'data-parsley-errors-messages-disabled' ]) }}
{{ Form::submit(__('Save'), ['class' => 'btn btn-primary me-1 mb-1']) }}
{!! Form::close() !!}
@endcan
@can('slider-delete') @endcan
{{ __('ID') }} {{ __('Image') }} {{ __('Type') }} {{ __('Name') }} {{ __('Third Party Link') }}{{ __('Action') }}
@endsection