@extends('admin.master') @section('content')

Booking

{{--
Booking Detail
--}}
@if($order->status == '0') @elseif($order->status == '1') @elseif($order->status == '2') @elseif($order->status == '3') @endif
Booking Id
UNK-{{$order->id}}
Status
{{$status[$order->status]}}
Name
{{$order->user->name??''}}
Email
{{$order->user->email??''}}
Phone
{{$order->user->phone??''}}
Company Name
{{$order->user->company_name??''}}
City
{{$order->city}}
State
{{$order->state}}
Country
{{$order->country}}
Address
{{$order->address}}
Booking Date
{{$order->created_at->format('d/m/Y h:i a')}}
Description
{{$order->description}}
Amount
${{$order->amount}}
@if($order->shipment_number)
Shipment Number
{{$order->shipment_number}}
@endif
@foreach($products as $product) @endforeach
Product Name Amount Quantity Size Total
{{ $product->name }} ${{ round($product->pivot->amount, 2) }} {{ $product->pivot->quantity }} {{$product->pivot->sizes?implode(', ', json_decode($product->pivot->sizes )):'' }} ${{ round($product->amount * $product->pivot->quantity, 2) }}
@if($order->paid_at=='') @endif
Order Amount: {{$order->amount}} Received Amount: {{$payments->sum('amount')}} @if($order->paid_at=='') Remaining Amount: {{$order->amount-$payments->sum('amount')}} @endif
@forelse($payments as $payment) @empty @endforelse @if(count($payments)) @endif
# Date Description Amount
{{ $loop->iteration }} {{ \Carbon\Carbon::parse($payment->date)->format('d/m/Y') }} {{ $payment->description}} {{ round($payment->amount ,2) }}
No Data
Total: {{$payments->sum('amount')}}
@endsection