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