@php
$i = $data->currentPage() * $data->perPage();
$j = $i - 19;
@endphp
@foreach($data as $franData)
@php
$type = "FIHL";
$company = "";
foreach($franchisorCompanyData as $companyName) {
if($companyName->franchisor_id == $franData->franchisor_id)
$company = $companyName->company_name;
}
if($franData->amount == 0)
$type = "FIBL";
@endphp
{{ $j }} |
{{ $franData->franchisor_id }} |
{{ $company }} |
{{ $franData->amount }} |
{{ $type }} |
{{ $franData->start_date }} |
{{ $franData->end_date }} |
|
@php
$j = ++$j;
@endphp
@endforeach