@extends('backEnd.master') @section('title') @lang('front_settings.add_news') @endsection @push('css') @endpush @section('mainContent')
@if (isset($add_news)) @if (userPermission('store_news')) @endif @endif
@if (isset($add_news)) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'update_news', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'add-income-update', ]) }} @else @if (userPermission('store_news')) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'store_news', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'add-income', ]) }} @endif @endif

@if (isset($add_news)) @lang('front_settings.update_news') @else @lang('common.add_news') @endif

@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif
@if ($errors->has('date')) {{ $errors->first('date') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
status == 1 ? 'checked' : '') : 'checked' }}>
is_global == 1 ? 'checked' : '') : 'checked' }}>
is_comment == 1 ? 'checked' : '') : '' }}>
auto_approve == 1 ? 'checked' : '') : '' }}>
@php $tooltip = ''; if (userPermission('store_news')) { $tooltip = ''; }elseif(userPermission('edit-news') && isset($add_news)){ $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
@if (Illuminate\Support\Facades\Config::get('app.app_sync')) @else @endif
{{ Form::close() }}

@lang('front_settings.news_list')

@foreach ($news as $value) @endforeach
@lang('front_settings.title') @lang('front_settings.publication_date') @lang('student.category') @lang('front_settings.image') @lang('common.action')
{{ $value->news_title }} {{ $value->publish_date != '' ? dateConvert($value->publish_date) : '' }} {{ $value->category != '' ? $value->category->category_name : '' }} @if (userPermission('newsDetails')) @lang('common.view') @endif @if (userPermission('edit-news')) @lang('common.edit') @endif @if (userPermission('delete-news')) @if (Illuminate\Support\Facades\Config::get('app.app_sync')) @lang('common.delete') @else @lang('common.delete') @endif @endif
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js') @push('script') @endpush