@php
$table_result = DB::table('tr_uniform')
->join('mst_uniformtype', 'mst_uniformtype.id', '=', 'tr_uniform.type_id')
->join('employees', 'employees.id', '=', 'tr_uniform.employee_id')
->join('departments', 'departments.id', '=', 'tr_uniform.dept_id')
->select('tr_uniform.id', 'name', 'tr_uniform.created_at')
->where('tr_uniform.isactive', '1')
->get();
$count_table_result = DB::table('tr_uniform')
->join('mst_uniformtype', 'mst_uniformtype.id', '=', 'tr_uniform.type_id')
->join('employees', 'employees.id', '=', 'tr_uniform.employee_id')
->join('departments', 'departments.id', '=', 'tr_uniform.dept_id')
->select('tr_uniform.id', 'name', 'tipe_seragam')
->where('tr_uniform.isactive', '1')
->count();
// dd($count_table_result);
@endphp
History {{ $title_menu }}
@if ($count_table_result != 0)
| Action |
@foreach ($table_result as $result)
@php
$sAsArray = array_keys((array) $result);
@endphp
@endforeach
@foreach ($sAsArray as $modal_h)
@if ($modal_h != 'id')
{{ $modal_h }} |
@endif
@endforeach
@endif