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

{{-- alert --}} @include('components.alert')
{{-- Boleh Diedit --}} @if(session('user') && session('user')->idroles === 'admins') @endif {{-- Boleh Diedit --}} @if($table_detail_h && count($table_detail_h) > 0) @foreach ($table_detail_h as $index => $detail_h) {{-- Hanya tampilkan data yang isactive = '1' --}} @if($detail_h->isactive === '1') @if(session('user') && session('user')->idroles === 'admins') @endif @endif @endforeach @endif
No Mat Type Resource Material FG/SFG Capacity Width Length StatusDibuat OlehAction
{{ $index + 1 }} {{ $detail_h->mat_type ?? '-' }} {{ $detail_h->resource ?? '-' }} {{ $detail_h->material_fg_sfg ?? '-' }} @if($detail_h->capacity) @php // Handle multiple capacities (comma-separated) $capacities = explode(',', $detail_h->capacity); $formattedCapacities = []; foreach($capacities as $cap) { $cap = trim($cap); if(is_numeric($cap)) { $formattedCapacities[] = number_format((float)$cap, 2); } else { $formattedCapacities[] = $cap; } } echo implode(', ', $formattedCapacities); @endphp @else 0.00 @endif {{ $detail_h->width ? number_format($detail_h->width, 3) : '0.000' }} {{ $detail_h->length ? number_format($detail_h->length, 2) : '0.00' }} @if(isset($detail_h->is_exported) && $detail_h->is_exported == 1) Sudah Diproses @else Belum Diproses @endif {{ $detail_h->user_create ?? '-' }} {{-- button detail --}} {{-- button view --}} {{-- button cancel --}} @if ((!isset($detail_h->is_exported) || $detail_h->is_exported == 0) && isset($authorize) && $authorize->delete == '1') @endif
{{-- Boleh diedit --}}
List Detail

{{-- Hapus default row karena akan dihandle oleh DataTables --}}
No Item No COMP MATERIAL CODE COMP DESC Product QTY Comp QTY
{{-- 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