OTA |
@foreach($periods as $key=>$period)
{{date('F, Y', strtotime(date('Y-d-m', strtotime('01/' . str_replace('-', '/', $period)))))}} |
@endforeach
Total Period {{--Nett--}} |
@foreach ($otas as $key=>$ota)
{{$ota->name}} |
@foreach($periods as $period)
{{ array_key_exists($ota->id, $data_ota) ? (array_key_exists($period, $data_ota[$ota->id]['per_period_nett']) ? number_format($data_ota[$ota->id]['per_period_nett'][$period], 2) : 0) : 0}} |
@endforeach
{{ array_key_exists($ota->id, $data_ota) ? (array_key_exists($ota->id, $data_ota) ? number_format($data_ota[$ota->id]['total_nett'], 2) : '0') : '0'}} |
@endforeach