@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
List {{ $title_menu }}
{{-- alert --}} @include('components.alert')

{{-- --}} {{-- retrieve table header --}} {{-- @foreach ($table_header as $header) @endforeach --}} {{-- retrieve table detail --}} @foreach ($table_detail as $detail) @php $primary = ''; foreach ($table_primary as $p) { $primary == '' ? ($primary = $detail->{$p->field}) : ($primary = $primary . ':' . $detail->{$p->field}); } $vcount = $loop->iteration; $isAdmin = in_array(session('user')->idroles ?? '', ['admins']); $isCreator = session('username') == $detail->user_create; $currentRole = strtolower(session('user')->idroles ?? ''); $canDuplicateAny = in_array($currentRole, ['admins', 'userss']); $canEditDelete = $isAdmin || $isCreator; $rowClass = ''; if ($detail->isactive == '0') { $rowClass = 'row-inactive'; } elseif ($detail->status == '3') { $rowClass = 'row-status-3'; } @endphp {{-- --}} @endforeach
ActionNo{{ $header->alias }}Kode Baru FG ID Material Grup Customer Product Name Division Mat G1 Mat G2 Mat G3 Length Keterangan Alt UOM Top Load Width Weight Status Status Value Download Type Download Subtype Created By Created At
@php $showEdit = $authorize->edit == '1' && $canEditDelete && ($detail->status_value == '0' || ($isAdmin && $detail->status_value == '1')); $showHapus = $authorize->delete == '1' && $canEditDelete && $detail->status_value == '0'; $showDuplikat = $authorize->add == '1' && ($canEditDelete || $canDuplicateAny); $showDropdown = $showEdit || $showHapus || $showDuplikat; @endphp @if ($showDropdown) @endif
{{ $vcount }} {{ $detail->kode_baru_fg }} {{ $detail->id_mat_group }} {{ $detail->customer }} {{ $detail->product_name }} {{ $detail->division }} {{ $detail->mat_g1 }} {{ $detail->mat_g2 }} {{ $detail->mat_g3 }} {{ $detail->length }} {{ $detail->keterangan }} {{ $detail->alt_uom }} {{ $detail->top_load }} {{ $detail->width }} {{ $detail->weight }} {{ $detail->status_name }} {{ $detail->status_value }} {{ $detail->download_type ?? '3' }} {{ $detail->download_subtype ?? '' }} {{ $detail->user_create }} {{ $detail->created_at }}
{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush