{{ $title }}
{{ _trans('common.To') }}
{{ @$order->tenant->name }}
{{ @$order->tenant->present_address }}, {{ @$order->tenant->city->name }}
{{ @$order->tenant->country->name }}, {{ @$order->tenant->zip_code }}, {{ @$order->tenant->state->name }}
{{ @$order->tenant->email }}
{{ @$order->tenant->phone }}
{{ _trans('common.Billing Address') }}
@if(!empty($order->billingAddress))
{{ @$order->billingAddress->name }}
{{ @$order->billingAddress->address }}, {{ @$order->billingAddress->country->name }}
{{ @$order->billingAddress->email }}
{{ @$order->billingAddress->phone }}
@else
{{ @$order->tenant->name }}
{{ @$order->tenant->present_address }}, {{ @$order->tenant->city->name }}
{{ @$order->tenant->country->name }}, {{ @$order->tenant->zip_code }}, {{ @$order->tenant->state->name }}
{{ @$order->tenant->email }}
{{ @$order->tenant->phone }}
@endif
{{ _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.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.Rent 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.Total Paid') }}: {{ priceFormat($item->payments->sum('amount')) }}
{{ _trans('common.Due Amount') }}: {{ priceFormat($item->total_amount - $item->payments->sum('amount'))}}
@if($item->status == 'pending')
@else
@if($item->status == 'approved')
{{ $item->status }}
@else
{{ $item->status }}
@endif
@endif
@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(count($item->familyMembers) > 0)
{{ !$member->status ? 'not eligible':'' }}
@endforeach
@endif
{{ _trans('landlord.Family Mambers') }}
@foreach($item->familyMembers as $member)
{{ $member->name }}
{{ $member->phone }}
@if(count($item->assets) > 0)
@endforeach
@endif
{{ _trans('common.Assets') }}
@foreach($item->assets as $asset)
{{ $asset->name }}
{{ $asset->serial }}
{!! $asset->note !!}