@php $sl = 0; @endphp @foreach ($setups->groupBy('group_name') as $key => $value) @endforeach
{{ __('obs.sl') }} {{ __('obs.start_date') }} {{ __('obs.end_date') }} {{ __('obs.method') }} {{ __('obs.data') }} {{ __('obs.hotel') }} {{ __('obs.action') }}
{{ ++$sl }} {{ date('d-m-Y', strtotime($value->first()->start_date)) }} {{ date('d-m-Y', strtotime($value->first()->end_date)) }} {{ $value->first()->target_method == 1 ? __('obs.new_room') : __('obs.ocupied_room') }} @foreach ($value as $v) {{ $v->target_value }} {{ $v->target_type == 1 ? ' Room/Day' : ' SAR(Bill)/Day' }} => {{ $v->commission_percent }} SAR @if (!$loop->last)
@endif @endforeach
@foreach ($value->first()->getWarehouses as $w) {{ $w->getWareHouseInfo->name_eng }}@if (!$loop->last), @endif @endforeach @if('frontdesk.frontdesk.commission_setup.edit') {{ __('obs.edit') }} @endif