@if(!empty($account['salaryList'])) {{-- This div is now constrained in width and centered, which will pull the two columns closer together on wide screens. --}}
{{-- Added .table-striped and .table-hover --}} {{-- Loop vertically: Create one new row for each salary --}} @foreach($account['salaryList'] as $salary) @endforeach
Salary credited date Description Amount
{{ isset($salary['date']) ? \Carbon\Carbon::parse($salary['date'])->format('d-M-Y') : '-' }} {{ isset($salary['narration']) ? ($salary['narration']) : 'NA'}} ₹ {{ $salary['amount'] ?? '-' }}
@else

No salary details found for this account.

@endif