{{ Auth::user()->company->name ?? 'ForexMate Bureau' }}

{{ $title }}
{{ $heading }}
@foreach($columns as $column) @endforeach @foreach($data as $row) @php $row = (array)$row; $isHeading = $row['is_heading'] ?? false; $isTotal = $row['is_total_row'] ?? false; $rowClass = ''; if ($isHeading) $rowClass = 'row-heading'; elseif ($isTotal) $rowClass = 'row-total'; @endphp @if($isHeading) @else @foreach($columns as $column) @php $value = $row[$column] ?? ''; $isTextCol = in_array($column, ['account_name', 'name', 'account_no']); $isCodeCol = in_array($column, ['fx_code', 'currency_code']); @endphp @endforeach @endif @endforeach
{{ str_replace('_', ' ', $column) }}
{{ $row['account_name'] ?? $row['name'] ?? '' }}
@if(is_numeric($value) && $value !== '' && !$isTextCol && !$isCodeCol) {{ number_format((float)$value, 2) }} @else {{ $value }} @endif