@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
| No | {{-- retrieve table header --}} @foreach ($table_header as $header){{ $header->alias }} | @endforeachAction |
|---|---|---|
| {{ $vcount }} | @foreach ($table_header as $field) @php $string = $field->field; @endphp {{-- field type enum --}} @if ($field->type == 'enum') @include('components.td_enum') {{-- field type file --}} @elseif ($field->type == 'file') @include('components.td_file') {{-- field type image --}} @elseif($field->type == 'image') @include('components.td_image') {{-- field type join --}} @elseif($field->type == 'join') @include('components.td_join') {{-- field type currency --}} @elseif ($field->type == 'currency') @include('components.td_currency') {{-- field type date --}} @elseif ($field->type == 'date') @include('components.td_date') {{-- field type number --}} @elseif ($field->type == 'number') @include('components.td_number') @else@if ($field->link != '') {{ $detail->$string }} @else {{ $detail->$string }} @endif | @endif @endforeach{{-- button view --}} {{-- check authorize edit --}} @if ($authorize->edit == '1') {{-- check status active --}} @if ($detail->isactive == 1) {{-- button edit --}} @endif @endif {{-- check authorize delete and data primary key not "msjit" --}} @if ($authorize->delete == '1' && $detail->$primary != 'msjit') @endif |