@php $typeTranslation = [ 'date' => [ 'prev' => trans('menu.prev_day'), 'next' => trans('menu.next_day') ], 'week' => [ 'prev' => trans('menu.prev_week'), 'next' => trans('menu.next_week') ], 'month' => [ 'prev' => trans('menu.prev_month'), 'next' => trans('menu.next_month') ] ]; $today = carbon\Carbon::now(); $weekNumber = $today->weekOfYear; @endphp

@if ($type == 'date') @if ($today->isSameDay($date)) {{trans('menu.today_title')}} @else {{trans('forms.date')}} @endif @elseif($type == 'week') @if ($weekNumber == $week) {{trans('title.schedule_this_week')}} @else {{trans('title.week')}} : {{$week}} @endif @endif

@if ($type == 'month') {{$monthText .' , '.$from->copy()->format('Y')}} @elseif($type == 'week') {{ $from->copy()->locale(app()->getLocale())->isoFormat('D MMMM, YYYY') }} - {{ $to->copy()->locale(app()->getLocale())->isoFormat('D MMMM, YYYY') }} @else {{ $date->locale(app()->getLocale())->isoFormat('dddd D MMMM, YYYY') }} @endif

@php $query = request()->query(); $query["date"] = $prev; if (request()->has('location')) { $query['location'] = request()->get('location'); } $prevUrl = url()->current() . '?' . http_build_query($query); $query["date"] = $next; if (request()->has('location')) { $query['location'] = request()->get('location'); } $nextUrl = url()->current() . '?' . http_build_query($query); @endphp
{{ trans('forms.lbl_monthly') }}
@if ($type != 'month')
@php $selectedLocation = $locations->where('id',request()->location)->first()->name ?? trans('forms.all_location'); @endphp {{$selectedLocation}}
location == null ? 'checked' : '' }} /> {{trans('forms.all_location')}}
@foreach($locations as $ekey => $value)
location == $value->id ? 'checked' : '' }} /> {{$value->name}}
@endforeach
@if ($type == 'date')
@php if ($orderby == 'asc') { $selectedOrder = "Asc" ; }elseif ($orderby == "desc") { $selectedOrder = "desc" ; }else{ $selectedOrder = "Sort by A-Z" ; } @endphp {{$selectedOrder}}
Asc
Desc

{{trans('title.only_operation_room')}}

@endif
@endif @if ($type == 'month')
@endif