@php( $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( $title ?? '', $subTitle ?? '', isset($filters) ? $filters : [], isset($advancedFilters) ? $advancedFilters : [], isset($data) ? $data : [], ) ) @php($headingOptions = [ ' Back', $permission['create'] ? ' Add New' : '' ]) @extends('admin.layouts.layout', $headerOption) @section('content')
@if(count($data) != 0) @foreach ($data as $key => $val) @if($permission['edit'] || $permission['destroy']) @endif @endforeach @else @endif
Display Field Name {!! \App\Helpers\Helper::sort($routePrefix . '.index', 'display_field_name', $orderBy, ['dynamic_header_id' => $dynamic_header_id]) !!} DB Field Name {!! \App\Helpers\Helper::sort($routePrefix . '.index', 'db_column_name', $orderBy, ['dynamic_header_id' => $dynamic_header_id]) !!} Controller Name {!! \App\Helpers\Helper::sort($routePrefix . '.index', 'class', $orderBy, ['dynamic_header_id' => $dynamic_header_id]) !!} Function Name {!! \App\Helpers\Helper::sort($routePrefix . '.index', 'method', $orderBy, ['dynamic_header_id' => $dynamic_header_id]) !!} Default {!! \App\Helpers\Helper::sort($routePrefix . '.index', 'is_default', $orderBy, ['dynamic_header_id' => $dynamic_header_id]) !!} Status {!! \App\Helpers\Helper::sort($routePrefix . '.index', 'status', $orderBy, ['dynamic_header_id' => $dynamic_header_id]) !!} Action
{{ $val->display_field_name ?? '--' }} {{ $val->db_column_name ?? '--' }} {{ $val->class ?? '--' }} {{ $val->method ?? '--'}}
is_default == 1 ? 'checked' : '' }}>
{!! $val->statuses[$val->status]['name'] !!} @if($permission['edit']) @endif @if($permission['destroy']) {!! html()->form('DELETE', route($routePrefix . '.destroy', ['dynamic_header_id' => $dynamic_header_id, 'id' => $val->id])) ->attributes([ 'style' => 'display:inline', 'id' => 'delete-form-' . $val->id, ])->open() !!} {!! html()->form()->close() !!} @endif
No Data
@include('admin.components.pagination') @endsection @push('page_script') @endpush