@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Group Hotel') @section('css') @endsection @section('content')
{{-- --}} @if ($type_period != 1)  PDF  EXCEL @else
 EXCEL
@endif
@foreach($periods as $key=>$period) @if ($type_period == 1) @else @endif @endforeach @foreach ($otas as $key=>$ota) @foreach($periods as $period) @endforeach @endforeach
OTA{{date('d-m-Y',strtotime($period))}}{{date('F, Y', strtotime(date('Y-d-m', strtotime('01/' . str_replace('-', '/', $period)))))}}Total Period
{{$ota->name}} {{ 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}}{{ 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'}}
@endsection @section('js') @endsection