{{ $title }}
{{ _trans('common.Invoice No.') }}: {{ $order->invoice_no }}
{{ _trans('common.Date') }}: {{ date('F d Y', strtotime($order->date)) }}
@foreach ($order->orderDetails as $item)
{{ _trans('landlord.Payment Info') }}
@endforeach
{{ @$item->property->name }}
{{ _trans('landlord.Property Info') }}
{{ _trans('common.Status') }}: {{ $item->status }}
{{ _trans('common.Property Size') }}: {{ @$item->property->size }}
{{ _trans('common.Flat No') }}: {{ @$item->property->flat_no }}
{{ _trans('common.Bedroom') }}: {{ @$item->property->bedroom }}
{{ _trans('common.Bathroom') }}: {{ @$item->property->bathroom }}
{{ _trans('common.Date') }}: {{ @$item->start_date }} @if($item->end_date)
- {{ $item->end_date }}
@endif
{{ _trans('common.Amount') }}: {{ priceFormat($item->price) }}
{{ _trans('common.Discount Amount') }}: {{ priceFormat($item->discount_amount) }}
{{ _trans('common.Payable Amount') }}
: {{ priceFormat($item->total_amount) }}
{{ _trans('common.Max Memeber Allow') }}
: {{ $item->advertisement->max_member }}
{{ _trans('common.Payment Status') }}: {{ $item->payment_status }}
{{ _trans('common.Total Paid') }}: {{ priceFormat($item->payments->sum('amount')) }}
{{ _trans('common.Due Amount') }}: {{ priceFormat($item->total_amount - $item->payments->sum('amount'))}}
@if(!empty($item->payments))
@if($item->payments->sum('amount') == $item->property->rent_amount - $item->discount_amount)
{{ _trans('common.Paid') }}
@else
@if(hasPermission('order_payment'))
@endif
@endif
@endif
@if(!empty($item->advertisement))
@if($item->advertisement->advertisement_type == \App\Enums\DealType::RENT)
@if($item->advertisement->max_member <= count($item->familyMembers) ) @endif
@if($item->status == 'approved')
{{ _trans('common.Add Family Member') }}
@endif
@endif
@endif