@extends(backpack_view('blank')) @php $defaultBreadcrumbs = [ trans('backpack::crud.admin') => url(config('backpack.base.route_prefix'), 'dashboard'), $crud->entity_name_plural => url($crud->route), trans('backpack::crud.list') => false, ]; // if breadcrumbs aren't defined in the CrudController, use the default breadcrumbs $breadcrumbs = $breadcrumbs ?? $defaultBreadcrumbs; @endphp @section('header')

{!! $crud->getHeading() ?? $crud->entity_name_plural !!} {!! $crud->getSubheading() ?? '' !!}

@endsection @section('content')
@if ($crud->entity_name_plural == 'Project Defects') @php $project_id = \Route::current()->parameter('project_id'); $project = \App\Models\Project::findOrFail($project_id); @endphp
Project Number {{ $project->project_no }}
Client Name {{ $project->client_name }}
Address {{ $project->road_no }} {{ $project->road_name }} {{ $project->block_no }} {{ $project->residence }} {{ $project->postal_code }}
@endif
@if ($crud->buttons()->where('stack', 'top')->count() || $crud->exportButtons())
@include('crud::inc.button_stack', ['stack' => 'top'])
@endif
{{-- Backpack List Filters --}} @if ($crud->filtersEnabled()) @include('crud::inc.filters_navbar') @endif {{-- Table columns --}} @foreach ($crud->columns() as $column) @endforeach @if ($crud->buttons()->where('stack', 'line')->count()) @endif {{-- Table columns --}} @foreach ($crud->columns() as $column) @endforeach @if ($crud->buttons()->where('stack', 'line')->count()) @endif
if developer forced field in table with 'visibleInTable => true' data-visible => regular visibility of the field data-can-be-visible-in-table => prevents the column to be loaded into the table (export-only) data-visible-in-modal => if column apears on responsive modal data-visible-in-export => if this field is exportable data-force-export => force export even if field are hidden --}} {{-- If it is an export field only, we are done. --}} @if (isset($column['exportOnlyField']) && $column['exportOnlyField'] === true) data-visible="false" data-visible-in-table="false" data-can-be-visible-in-table="false" data-visible-in-modal="false" data-visible-in-export="true" data-force-export="true" @else data-visible-in-table="{{ var_export($column['visibleInTable'] ?? false) }}" data-visible="{{ var_export($column['visibleInTable'] ?? true) }}" data-can-be-visible-in-table="true" data-visible-in-modal="{{ var_export($column['visibleInModal'] ?? true) }}" @if (isset($column['visibleInExport'])) @if ($column['visibleInExport'] === false) data-visible-in-export="false" data-force-export="false" @else data-visible-in-export="true" data-force-export="true" @endif @else data-visible-in-export="true" data-force-export="false" @endif @endif > {!! $column['label'] !!} {{ trans('backpack::crud.actions') }}
{!! $column['label'] !!}{{ trans('backpack::crud.actions') }}
@if ($crud->buttons()->where('stack', 'bottom')->count())
@include('crud::inc.button_stack', ['stack' => 'bottom'])
@endif
@if ($crud->entity_name_plural == 'Supplier Invoices') @endif @endsection @section('after_styles') @stack('crud_list_styles') @endsection @section('after_scripts') @include('crud::inc.datatables_logic') @stack('crud_list_scripts') @if ($crud->entity_name_plural == 'projects') @endif @if (in_array($crud->entity_name_plural, ['quotations', 'agreements'])) @endif @if (in_array($crud->entity_name_plural, ['variation orders'])) @endif @if ($crud->entity_name_plural == 'Supplier Invoices') @endif @if ($crud->entity_name == 'lead') {{-- FOR SOFT DELETE LEADS --}} @endif {{-- For Export Function on the Data List --}} @endsection