@php
$countLifeIns = countLifeIns();
$length=1;
if($countLifeIns>=1){
$length=$countLifeIns;
}
use App\Models\Agent\InsuranceCompany;
function countLifeIns(){
$record=InsuranceCompany::where('company_type',"Life")->where('status',1)->count();
return $record;
}
@endphp
{{-- @if($length == 0)
@for($i=1;$i<=$length;$i++)
@for($j=1;$j<=$length;$j++)
@for($k=1;$k<=$length;$k++)
@endfor
@endfor
@endfor
@else --}}
@for($i=1;$i<=$length;$i++)
@for($j=1;$j<=$length-$length+1;$j++)
@for($k=1;$k<=$length-$length+1;$k++)
@endfor
@endfor
@endfor
{{-- @endif --}}