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

@if(isset($editData)) @lang('front_settings.edit_category') @else @lang('front_settings.add_category') @endif

@if ($errors->has('category_name')) {{ $errors->first('category_name') }} @endif
@php $tooltip = ""; if(userPermission('store_news_category') || userPermission('edit-news-category')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('front_settings.news_list')

@if(isset($newsCategories)) @foreach($newsCategories as $value) @endforeach @endif
@lang('student.category_title') @lang('common.action')
{{$value->category_name}} @if(userPermission('edit-news-category')) @lang('common.edit') @endif @if(Illuminate\Support\Facades\Config::get('app.app_sync')) @lang('common.delete') @else @if(userPermission('for-delete-news-category')) @lang('common.delete') @endif @endif
@endsection @include('backEnd.partials.data_table_js')