@extends('backEnd.master') @section('title') @lang('front_settings.form_download') @endsection @section('mainContent')
@if (isset($add_form_download)) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'form-download-update', 'method' => 'POST', 'enctype' => 'multipart/form-data', ]) }} @else @if (userPermission('form-download-store')) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'form-download-store', 'method' => 'POST', 'enctype' => 'multipart/form-data', ]) }} @endif @endif

@if (isset($add_form_download)) @lang('front_settings.edit_form_download') @else @lang('front_settings.form_download') @endif

@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('short_description')) {{ $errors->first('short_description') }} @endif
@if ($errors->has('publish_date')) {{ $errors->first('publish_date') }} @endif
(jpg,png,jpeg,pdf are allowed for upload)
@if ($errors->has('file')) {{ $errors->first('file') }} @endif
show_public == 1 ? 'checked' : '' }}>
show_public == 0 ? 'checked' : '' }}>
{{ Form::close() }}

@lang('front_settings.form_download_list')

@foreach ($froms as $key => $value) @endforeach
@lang('common.sl') @lang('front_settings.title') @lang('front_settings.short_description') @lang('front_settings.publish_date') @lang('front_settings.show_public') @lang('common.action')
{{ $key + 1 }} {{ @$value->title }} {{ @$value->short_description }} {{ date('m/d/Y', strtotime(@$value->publish_date)) }} @if (@$value->show_public == 1) @endif @if (@$value->show_public == 0) @endif @if ($value->link) @lang('front_settings.link') @endif @if ($value->file) @lang('front_settings.download') @endif @lang('common.edit') @lang('common.delete')
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js') @push('script') @endpush