@extends('layouts.app') @section('content') @include('layouts.top-header', [ 'title' => __('Booking'), 'class' => 'col-lg-7' ])
{{__('Booking table')}}
@if ($give_service == "Both") @endif @if (count($bookings) != 0) @foreach ($bookings as $key => $booking) @if ($booking->user) @else @endif @if ($give_service == "Both") @if ($booking->booking_at == 'Home') @else @endif @endif @php $start_time = is_string($booking->start_time) ? new DateTime($booking->start_time) : $booking->start_time; $end_time = is_string($booking->end_time) ? new DateTime($booking->end_time) : $booking->end_time; @endphp @endforeach @else @endif
{{__('#')}} {{__('Booking id')}} {{__('User Name')}} {{__('Services')}}{{__('Booking At')}}{{__('Date')}} {{__('Emp')}} {{__('Duration')}} {{__('Payment')}} {{__('Type')}} {{__('Paid')}} {{__('Booking Status')}}
{{$bookings->firstItem() + $key}} {{$booking->booking_id}}{{$booking->user->name ?? ''}}
@foreach ($booking->services as $service) service @endforeach
{{__('At Home')}} {{__('At '.$businessLabelTitleCase)}} {{$booking->date}} {{$booking->employee->name}}{{ $symbol->time_format == 0 ? $start_time->format('H:i') . ' To ' . $end_time->format('H:i') : $start_time->format('g:i A') . ' To ' . $end_time->format('g:i A') }} {{$symbol->currency_symbol}}{{$booking->payment}} @if ($booking->payment_type == "LOCAL" || $booking->payment_type == "Local") {{__('Cash')}} @else Stripe @endif @if ($booking->payment_status == 0) {{__('Unpaid')}} @else {{__('Paid')}} @endif @php $base_url = url('/'); @endphp
{{__('No Bookings')}}
{{ $bookings->links("pagination::bootstrap-4") }}
@include('owner.booking.create') @include('owner.booking.show') @endsection