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

{{-- check result data --}} @if ($table_result) {{-- 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') @elseif (substr($header, 0, 3) == 'CDT') @elseif (substr($header, 0, 3) == 'CST') @else @endif @php $i++; @endphp @endforeach {{-- retrieve table result --}} @foreach ($table_result as $detail) isactive == '0' || @$detail->ISACTIVE == '0' ? 'class=not style=background-color:#ffe9ed;' : '' }}> @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') @elseif (substr($string, 0, 3) == 'CDT') @elseif (substr($string, 0, 3) == 'CST') @else @if ( $header == 'Total Permohonan' || $header == 'Jumlah Izin <= 3 Jam' || $header == 'Jumlah Izin > 3 Jam < 6 Jam' || $header == 'Jumlah Izin >= 6 Jam' || $header == 'Jumlah Tugas' || $header == 'Jumlah Izin' || $header == 'Total Potongan (Hari)') @else @endif @endif @php $i++; @endphp @endforeach @endforeach @endif
No{{ substr($header, 4) }}{{ substr($header, 6) . '-' . substr($header, 3, 2) }}{{ substr($header, 4) }}{{ $header }} Action
{{ $loop->iteration }} image {{ asset('/storage' . '/' . $detail->$string) }} {{ $detail->$string }} {{ $detail->$string }} {{ $detail->$string }} {{ $detail->$string }} Lihat history permohonan
@if ($table_result) @else @endif
{{-- 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