@php ($headerOption = [ 'title' => $module, 'header_buttons' => [ ($permission['create'] ? ''. \Config::get('settings.icon_add') .' Add New' : '') ], 'filters' => isset($filters) ? $filters : [], 'data' => isset($data) ? $data : [] ]) @extends('admin.layouts.layout', $headerOption) @section('content')
| ID | Title | @if($isAdmin)Created By | @endifAdded Date | Added By | @if($articleType['categories'])Type | @endifTotal Views | Status | @if(!in_array('show_in_home', $articleType['admin_form_exclude']))Show in Home | @endif @if($permission['edit'] || $permission['destroy'])Action | @endif|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $val->id }} | {{ $val->title }} | @if($isAdmin){{ $val->cl_username ? $val->cl_username : 'n/a' }} | @endif{{ \App\Helpers\Helper::showDate($val->add_date, false) }} | {{ $val->added_by }} | @if($articleType['categories'] && $val->category){{ $articleType['categories'][$val->category] ?? '--' }} | @endif{{ number_format($val->total_views) }} | {!! $val->statuses[$val->status]['name'] !!} | {!! $val->showInHomes[$val->show_in_home]['name'] !!} | @if($permission['edit'] || $permission['destroy'])@if($val->type == 'LN') @endif @if($permission['edit']) {!! \Config::get('settings.icon_edit') !!} @endif @if($permission['destroy'] && $val->id != auth()->user()->id) {!! \Config::get('settings.icon_delete') !!} {!! Form::open([ 'method' => 'DELETE', 'route' => [ $routePrefix . '.destroy', [ 'news' => $val->id, 'type' => $parentType ] ], 'style' => 'display:inline', 'id' => 'delete-form-' . $val->id ]) !!} {!! Form::close() !!} @endif | @endif|||||||||||||||
|
No Data
|
||||||||||||||||||||||||