@foreach ($arrColumns as $key => $arrColumn)
@if (!in_array($key, json_decode($columnHideShowData)))
|
{{ $arrColumn }} |
@endif
@endforeach
@foreach ($employees as $employee)
@php
if ($employee->status == 0) {
$sts = 'pending';
} else if ($employee->status == 1) {
$sts = 'approved';
} else if ($employee->status == 2) {
$sts = 'Rejected';
}
$arrRows = [$employee->emp_id, $employee->emp_name, $employee->working_date, $employee->time, $employee->hrs, $employee->reason,$sts];
@endphp
@for ($k = 0; $k < count($arrRows); $k++)
@if (!in_array($k, json_decode($columnHideShowData)))
| {{ $arrRows[$k] }} |
@endif
@endfor
@endforeach