@if (!empty($appointment->name))
{{ truncateString($appointment->name, 40) }}
@endif
|
@if ($appointment->vendor_id != 0)
{{ $appointment->vendor->username }}
@else
{{ __('admin') }}
@endif
|
{{ \Carbon\Carbon::parse($appointment->booking_date)->isoFormat('Do MMMM YYYY') }}
|
{{ $appointment->start_date }} - {{ $appointment->end_date }}
|
@php
if ($appointment->order_status == 'pending') {
$order_bg = 'bg-warning';
} elseif ($appointment->order_status == 'processing') {
$order_bg = 'bg-info';
} elseif ($appointment->order_status == 'accepted') {
$order_bg = 'bg-success';
} elseif ($appointment->order_status == 'rejected') {
$order_bg = 'bg-danger';
}
@endphp
{{ __($appointment->order_status) }}
|
{{ __('Details') }}
|
@endforeach