@extends('layouts.app_booking') @section('title',__('restaurant.todays_bookings')) @section('content')
@component('components.filters', ['class' => 'card mt-5'])
{!! 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') . ':') !!}
@endcomponent @component('components.widget', ['class' => 'card mt-5'])
@foreach($bookings as $booking)
@php $bg = $booking->booking_status == 'completed' ? 'success' : ($booking->booking_status == 'waiting' ? 'warning' : 'danger'); @endphp
@lang('new.booking_number'): {{ $booking->invoice_no }}

@lang('new.customer'): {{ $booking->customer_name }}

@lang('new.service_count'): {{ $booking->service_count }}

@lang('new.status'): @php $color = $booking->booking_status == 'completed' ? 'green' : ($booking->booking_status == 'waiting' ? 'orange' : 'red'); @endphp {{ __('restaurant.'.$booking->booking_status )}}

@lang('new.total'): {{ $booking->total }}

@lang('new.booked_by'): 👨‍💼 {{ \App\User::find($booking->created_by) ? \App\User::find($booking->created_by)->first_name . ' '. \App\User::find($booking->created_by)->last_name : ' '}}

@endforeach @if($bookings->count() == 0)

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

@endif
@endcomponent @endsection @section('javascript') @endsection