Date {{ $slot }} ID Supplier Name Short Description @foreach($departments as $department) {{ $department->name }} @endforeach {{ $slot }} amount Total @if($slot == 'PV') LPO Created by LPO Approved by @else Created by @if($slot != 'Invoice') Status @endif @endif Action @foreach($departments as $department) @if($department->subdepts->count() != 0) @foreach($department->subdepts as $sub_dept) {{ $sub_dept->name }} @endforeach @else - @endif @endforeach @foreach($departments as $department) @if($department->subdepts->count() != 0) @foreach($department->subdepts as $sub_dept) {{ $franchiseCurrency }} USD @endforeach @else {{ $franchiseCurrency }} USD @endif @endforeach {{ $franchiseCurrency }} USD