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

@if (isset($add_front_result)) @lang('front_settings.edit_front_result') @else @lang('front_settings.front_result') @endif

@if ($errors->has('title')) {{ $errors->first('title') }} @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
{{ Form::close() }}

@lang('front_settings.front_result_list')

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