@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@foreach ($table_result as $table) @if ($jenis_checklist == null || $jenis_checklist == $table['id_jenis']) @php $title = DB::table('mst_jenis') ->where('idjenis', $table['id_jenis']) ->first(); $result_hasil = $table['data']; @endphp

Temuan {{ $title->nama_jenis }}

Result {{ $title->nama_jenis }}

{{-- check result data --}} @if ($result_hasil) {{-- set table header --}} @foreach ($result_hasil as $result) @php $sAsArray = array_keys((array) $result); $i = 0; @endphp @endforeach @if (isset($sAsArray)) @foreach ($sAsArray as $header) @if (substr($header, 0, 3) == 'IMG') @elseif (substr($header, 0, 3) == 'CDT') @else @endif @php $i++; @endphp @endforeach @endif {{-- retrieve table result --}} @foreach ($result_hasil as $detail) isactive == '0' || @$detail->ISACTIVE == '0' ? 'style=background-color:#ffe9ed;' : '' }}> @foreach ($result_hasil 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') @elseif (substr($string, 0, 3) == 'CDT') @elseif ($string == 'acc_head' || $string == 'acc_atasan') @if ($detail->$string == -1) @elseif($detail->$string == 0) @elseif($detail->$string == 1) @endif @elseif ($string == 'id') @else @endif @endforeach @endforeach @endif
No{{ substr($header, 4) }}{{ substr($header, 6) . '-' . substr($header, 3, 2) }} {{ $header }}
{{ $loop->iteration }} image {{ asset('/storage' . '/' . $detail->$string) }} {{ $detail->$string }} Belum ACC Tolak Terima {{ $detail->$string }}
@if ($result_hasil) @else @endif
@endif @endforeach
{{-- 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') @foreach ($table_result as $table) @endforeach @endpush