@extends('layouts.app') @section('title', $reportLabel . ' โ ' . $categoryLabel) @section('breadcrumbs')
@endsection @section('content'){{ $categoryLabel }} ยท {{ $startDate->format('d M Y') }} โ {{ $endDate->format('d M Y') }}
{{ $data['error'] }}
| {{ ucwords(str_replace('_', ' ', $col)) }} | @endforeach
|---|
| @if(is_numeric($cellValue) && (str_contains($colKey, 'amount') || str_contains($colKey, 'gross') || str_contains($colKey, 'net') || str_contains($colKey, 'salary') || str_contains($colKey, 'earnings') || str_contains($colKey, 'deductions'))) OMR {{ number_format($cellValue, 3) }} @elseif(is_numeric($cellValue) && (str_contains($colKey, 'rate') || str_contains($colKey, 'ratio'))) {{ $cellValue }}% @else {{ $cellValue }} @endif | @endforeach