@extends('layouts.app_booking') @section('title',__('new.booking_by_staff')) @section('content')
@component('components.filters', ['class' => 'card'])
{!! Form::select('location_id', $business_locations, $location_id, ['id'=>'location_filter','class' => 'form-control select2', 'style'=>'width:100%', 'placeholder'=>__('lang_v1.all') ]); !!} {!! Form::label('location_filter', __('purchase.business_location') . ':') !!}
{!! Form::select('customer_id', $customers, $customer_id, ['id'=>'customer_filter','class'=>'form-control select2', 'style'=>'width:100%', 'placeholder'=>__('lang_v1.all') ]); !!} {!! Form::label('customer_filter', __('contact.customer') . ':') !!}
{!! Form::date('day', $day, ['id'=>'day_filter','class'=>'form-control']) !!} {!! Form::label('day_filter', __('new.select_date') . ':') !!}
@endcomponent
@forelse($services_by_staff as $staff_id => $services) @php $staff_name = $services->first()->staff_name; @endphp
{{count($services)}}
👨‍💼 {{ \App\User::find($staff_id) ? \App\User::find($staff_id)->first_name . ' '. \App\User::find($staff_id)->last_name : ' '}}
@foreach($services as $srv)

🛎 {{__('new.booking_no')}}: {{ $srv->invoice_no }}
🛎 {{__('new.service')}}: {{ $srv->product_name }}
🚦 {{__('new.status')}}: @php $color = $srv->booking_status == 'completed' ? 'green' : ($srv->booking_status == 'waiting' ? 'orange' : 'red'); @endphp {{__('restaurant.'. $srv->booking_status )}}
(@lang('new.customer'): {{ \App\Contact::find($srv->contact_id)->name }})
(@lang('restaurant.booking_time'): {{ date('h:i A', strtotime($srv->booking_start_time))}})

@endforeach
@empty

🚫{{__('new.no_booking_today')}}

@endforelse
@endsection @section('javascript') @endsection