@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
| @endif | No | {{-- set table header --}} @foreach ($table_result as $result) @php $sAsArray = array_keys((array) $result); $i = 0; @endphp @endforeach @foreach ($sAsArray as $header) @if (substr($header, 0, 3) == 'IMG'){{ substr($header, 4) }} | @elseif (substr($header, 0, 3) == 'CDT'){{ substr($header, 6) . '-' . substr($header, 3, 2) }} | @elseif ($header == 'COUNTER'){{ $header }} | @else{{ $header }} | @endif @php $i++; @endphp @endforeachAction | |
|---|---|---|---|---|---|---|---|
| @endif | {{ $loop->iteration }} | @foreach ($table_result as $result) @php $field = array_keys((array) $result); $i = 0; @endphp @endforeach @foreach ($field as $header) @php $string = $header; $img_id = ''; $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; for ($i = 0; $i < 10; $i++) { $img_id .= $characters[mt_rand(0, strlen($characters) - 1)]; } @endphp @if (substr($string, 0, 3) == 'IMG')
@if ($dmenu == 'rpasst')
|
@elseif (substr($string, 0, 3) == 'CDT')
{{ $detail->$string }} | @else @if ($string == 'No. Aset') @php $id = $detail->$string; @endphp @endif @if ($string == 'Asal' || $string == 'Tujuan' || $string == 'Tanggal' || $string == 'Spesifikasi'){{ $detail->$string }} | @elseif ($string == 'COUNTER'){{ $detail->$string }} | @else{{ $detail->$string }} | @endif @endif @php $i++; @endphp @endforeach