Invoice Details {{ $order->payment_status ? ucwords($order->payment_status) : '' }}
@php if ($order->payment_status == App\Helpers\ConstantHelper::PAID) { $color = '#089D12'; } elseif ($order->payment_status == App\Helpers\ConstantHelper::UNPAID) { $color = '#F25252'; } else { $color = '#E69700'; } @endphp @if ($order->tip_amount > 0) @endif @if ($order->wallet > 0) @endif @if ($order->status == App\Helpers\ConstantHelper::CANCELLED) @endif
Invoice No
{{ $order->order_no }}
Date
{{ date('d-m-Y', strtotime($order->date)) }}
Time
{{ date('h:i A', strtotime($order->start_time)) }} to {{ date('h:i A', strtotime($order->end_time)) }}
Payment Status
{{ ucwords($order->payment_status) }}
Staff Name
{{ isset($order->staffUser->name) ? $order->staffUser->name : '' }}
Service Type
{{ isset($order->serviceType->service_en) ? $order->serviceType->service_en : '' }}
Payment Mode
{{ $order->payment_mode ? ucwords($order->payment_mode) : '' }}
Customer Name
{{ @$order['user_detail']['first_name'] . ' ' . @$order['user_detail']['last_name'] }}
({{ @$order['user_detail']['mobile_code'] }} {{ @$order['user_detail']['mobile_number'] }})
Services
@foreach ($order['orderItems'] as $item) {{ $item['service_detail']['name_en'] }} @unless ($loop->last) , @endunless @endforeach
Service Amount
{{ 'EGP ' . $order->total_amount }}
Tip
{{ 'EGP ' . $order->tip_amount }}
Paid by Wallet
{{ 'EGP ' . $order->wallet }}
Cancelled At
{{ date('d-m-Y h:i A', strtotime($order->updated_at)) }}
Cancellation Charge
{{ $order->settlement_percentage . '%' }}
Refund Fee
{{ 'EGP ' . $order->admin_value + $order->business_user_value }}
Refund Amount
{{ 'EGP ' . $order->refund_amount }}
{{-- --}} @if ($order->status == App\Helpers\ConstantHelper::CANCELLED) @else @endif
Total Services
{{ count($order->orderItems) }}
Total Services Amount
{{ 'EGP ' . $order->total_amount }}
Total Tip
{{ 'EGP ' . $order->tip_amount }}
Refund Amount
{{ 'EGP ' . $order->refund_amount }}
Total Paid
{{ 'EGP ' . $order->total_paid + $order->tip_amount + $order->wallet }}