@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @section('content') {{--

Printing Date & Time: {{ $extra['current_date_time'] }}

--}}
@include('admin.partials.header', ['extra' => $extra]) @php $balance = $total_units = $total_product_amount = $total_units_sold = $total_product_amount_sold = $total_discount_amount_sold = $total_receivable_amount_sold = $total_received_amount_sold = $total_balance = $total_units_vacant = $total_product_amount_vacant = $total_units_hold = $total_product_amount_hold = $total_size_all = $total_size_sold = $total_size_aviable = $total_size_hold = $project_balance = $total_project_balance = 0; $total_size_in = ""; @endphp @if (count($type) > 0) @foreach ($type as $key => $item) @php $total_units += isset($product_total_quantity[$item->id][0]['total_units']) ? $product_total_quantity[$item->id][0]['total_units'] : 0; $total_product_amount += isset($product_total_quantity[$item->id][0]['product_amount']) ? $product_total_quantity[$item->id][0]['product_amount'] : 0; $total_size_all += $product_total_quantity[$item->id][0]['total_size']; if($product_total_quantity[$item->id][0]['size_in'] != ""){ $total_size_in = $product_total_quantity[$item->id][0]['size_in']; } @endphp @php $balance = (isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? $product_sold_quantity[$item->id][0]['receivable_amount'] : 0) - (isset($product_received_amount[$item->id][0]['received_amount']) ? $product_received_amount[$item->id][0]['received_amount'] : 0); @endphp @php $total_units_sold += isset($product_sold_quantity[$item->id][0]['total_units']) ? $product_sold_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_sold += isset($product_sold_quantity[$item->id][0]['product_amount']) ? $product_sold_quantity[$item->id][0]['product_amount'] : 0; $total_discount_amount_sold += isset($product_sold_quantity[$item->id][0]['discount_amount']) ? $product_sold_quantity[$item->id][0]['discount_amount'] : 0; $total_receivable_amount_sold += isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? $product_sold_quantity[$item->id][0]['receivable_amount'] : 0; $total_received_amount_sold += isset($product_received_amount[$item->id][0]['received_amount']) ? $product_received_amount[$item->id][0]['received_amount'] : 0; $total_balance += $balance; $total_size_sold += $product_sold_quantity[$item->id][0]['total_size']; @endphp @php $total_units_vacant += isset($product_available_quantity[$item->id][0]['total_units']) ? $product_available_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_vacant += isset($product_available_quantity[$item->id][0]['product_amount']) ? $product_available_quantity[$item->id][0]['product_amount'] : 0; $total_size_aviable += $product_available_quantity[$item->id][0]['total_size']; @endphp @php $total_units_hold += isset($product_hold_quantity[$item->id][0]['total_units']) ? $product_hold_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_hold += isset($product_hold_quantity[$item->id][0]['product_amount']) ? $product_hold_quantity[$item->id][0]['product_amount'] : 0; $total_size_hold += $product_hold_quantity[$item->id][0]['total_size']; $project_balance = (isset($product_available_quantity[$item->id][0]['product_amount']) ? $product_available_quantity[$item->id][0]['product_amount'] : 0) + $balance; $total_project_balance += $project_balance; @endphp @endforeach @elseif (count($block) > 0) @foreach ($block as $key => $item) @php $total_units += isset($product_total_quantity[$item->id][0]['total_units']) ? $product_total_quantity[$item->id][0]['total_units'] : 0; $total_product_amount += isset($product_total_quantity[$item->id][0]['product_amount']) ? $product_total_quantity[$item->id][0]['product_amount'] : 0; $total_size_all += $product_total_quantity[$item->id][0]['total_size']; if($product_total_quantity[$item->id][0]['size_in'] != ""){ $total_size_in = $product_total_quantity[$item->id][0]['size_in']; } @endphp @php $balance = (isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? $product_sold_quantity[$item->id][0]['receivable_amount'] : 0) - (isset($product_received_amount[$item->id][0]['received_amount']) ? $product_received_amount[$item->id][0]['received_amount'] : 0); @endphp @php $total_units_sold += isset($product_sold_quantity[$item->id][0]['total_units']) ? $product_sold_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_sold += isset($product_sold_quantity[$item->id][0]['product_amount']) ? $product_sold_quantity[$item->id][0]['product_amount'] : 0; $total_discount_amount_sold += isset($product_sold_quantity[$item->id][0]['discount_amount']) ? $product_sold_quantity[$item->id][0]['discount_amount'] : 0; $total_receivable_amount_sold += isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? $product_sold_quantity[$item->id][0]['receivable_amount'] : 0; $total_received_amount_sold += isset($product_received_amount[$item->id][0]['received_amount']) ? $product_received_amount[$item->id][0]['received_amount'] : 0; $total_balance += $balance; $total_size_sold += $product_sold_quantity[$item->id][0]['total_size']; @endphp @php $total_units_vacant += isset($product_available_quantity[$item->id][0]['total_units']) ? $product_available_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_vacant += isset($product_available_quantity[$item->id][0]['product_amount']) ? $product_available_quantity[$item->id][0]['product_amount'] : 0; $total_size_aviable += $product_available_quantity[$item->id][0]['total_size']; @endphp @php $total_units_hold += isset($product_hold_quantity[$item->id][0]['total_units']) ? $product_hold_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_hold += isset($product_hold_quantity[$item->id][0]['product_amount']) ? $product_hold_quantity[$item->id][0]['product_amount'] : 0; $total_size_hold += $product_hold_quantity[$item->id][0]['total_size']; $project_balance = (isset($product_available_quantity[$item->id][0]['product_amount']) ? $product_available_quantity[$item->id][0]['product_amount'] : 0) + $balance; $total_project_balance += $project_balance; @endphp @endforeach @else @foreach ($category as $key => $item) @php $total_units += isset($product_total_quantity[$item->id][0]['total_units']) ? $product_total_quantity[$item->id][0]['total_units'] : 0; $total_product_amount += isset($product_total_quantity[$item->id][0]['product_amount']) ? $product_total_quantity[$item->id][0]['product_amount'] : 0; $total_size_all += $product_total_quantity[$item->id][0]['total_size']; if($product_total_quantity[$item->id][0]['size_in'] != ""){ $total_size_in = $product_total_quantity[$item->id][0]['size_in']; } @endphp @php $balance = (isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? $product_sold_quantity[$item->id][0]['receivable_amount'] : 0) - (isset($product_received_amount[$item->id][0]['received_amount']) ? $product_received_amount[$item->id][0]['received_amount'] : 0); @endphp @php $total_units_sold += isset($product_sold_quantity[$item->id][0]['total_units']) ? $product_sold_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_sold += isset($product_sold_quantity[$item->id][0]['product_amount']) ? $product_sold_quantity[$item->id][0]['product_amount'] : 0; $total_discount_amount_sold += isset($product_sold_quantity[$item->id][0]['discount_amount']) ? $product_sold_quantity[$item->id][0]['discount_amount'] : 0; $total_receivable_amount_sold += isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? $product_sold_quantity[$item->id][0]['receivable_amount'] : 0; $total_received_amount_sold += isset($product_received_amount[$item->id][0]['received_amount']) ? $product_received_amount[$item->id][0]['received_amount'] : 0; $total_balance += $balance; $total_size_sold += $product_sold_quantity[$item->id][0]['total_size']; @endphp @php $total_units_vacant += isset($product_available_quantity[$item->id][0]['total_units']) ? $product_available_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_vacant += isset($product_available_quantity[$item->id][0]['product_amount']) ? $product_available_quantity[$item->id][0]['product_amount'] : 0; $total_size_aviable += $product_available_quantity[$item->id][0]['total_size']; @endphp @php $total_units_hold += isset($product_hold_quantity[$item->id][0]['total_units']) ? $product_hold_quantity[$item->id][0]['total_units'] : 0; $total_product_amount_hold += isset($product_hold_quantity[$item->id][0]['product_amount']) ? $product_hold_quantity[$item->id][0]['product_amount'] : 0; $total_size_hold += $product_hold_quantity[$item->id][0]['total_size']; $project_balance = (isset($product_available_quantity[$item->id][0]['product_amount']) ? $product_available_quantity[$item->id][0]['product_amount'] : 0) + $balance; $total_project_balance += $project_balance; @endphp @endforeach @endif
{{__('lang.total_units')}} {{__('lang.sold')}} {{__('lang.vacant')}} {{__('lang.reserved')}}
{{__('lang.type')}}s {{__('lang.units')}} {{__('lang.size')}} {{__('lang.amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.units')}} {{__('lang.size')}} {{__('lang.amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.discount')}} {{__('lang.receivable')}} {{__('lang.received')}} {{__('lang.balance')}} {{__('lang.units')}} {{__('lang.size')}} {{__('lang.amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.units')}} {{__('lang.size')}} {{__('lang.amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.project_balance')}}
{{ $item->name }} {{ isset($product_total_quantity[$item->id][0]['total_units']) ? $product_total_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_total_quantity[$item->id][0]['size']) ? $product_total_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_total_quantity[$item->id][0]['product_amount']) ? number_format($product_total_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['total_units']) ? $product_sold_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_sold_quantity[$item->id][0]['size']) ? $product_sold_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_sold_quantity[$item->id][0]['product_amount']) ? number_format($product_sold_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['discount_amount']) ? number_format($product_sold_quantity[$item->id][0]['discount_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? number_format($product_sold_quantity[$item->id][0]['receivable_amount'], 2) : 0 }} {{ isset($product_received_amount[$item->id][0]['received_amount']) ? number_format($product_received_amount[$item->id][0]['received_amount'], 2) : 0 }} {{ number_format($balance, 2) }}{{ isset($product_available_quantity[$item->id][0]['total_units']) ? $product_available_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_available_quantity[$item->id][0]['size']) ? $product_available_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_available_quantity[$item->id][0]['product_amount']) ? number_format($product_available_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_hold_quantity[$item->id][0]['total_units']) ? $product_hold_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_hold_quantity[$item->id][0]['size']) ? $product_hold_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_hold_quantity[$item->id][0]['product_amount']) ? number_format($product_hold_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ number_format($project_balance,2) }}
{{ $item->name }} {{ isset($product_total_quantity[$item->id][0]['total_units']) ? $product_total_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_total_quantity[$item->id][0]['size']) ? $product_total_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_total_quantity[$item->id][0]['product_amount']) ? number_format($product_total_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['total_units']) ? $product_sold_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_sold_quantity[$item->id][0]['size']) ? $product_sold_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_sold_quantity[$item->id][0]['product_amount']) ? number_format($product_sold_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['discount_amount']) ? number_format($product_sold_quantity[$item->id][0]['discount_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? number_format($product_sold_quantity[$item->id][0]['receivable_amount'], 2) : 0 }} {{ isset($product_received_amount[$item->id][0]['received_amount']) ? number_format($product_received_amount[$item->id][0]['received_amount'], 2) : 0 }} {{ number_format($balance, 2) }}{{ isset($product_available_quantity[$item->id][0]['total_units']) ? $product_available_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_available_quantity[$item->id][0]['size']) ? $product_available_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_available_quantity[$item->id][0]['product_amount']) ? number_format($product_available_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_hold_quantity[$item->id][0]['total_units']) ? $product_hold_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_hold_quantity[$item->id][0]['size']) ? $product_hold_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_hold_quantity[$item->id][0]['product_amount']) ? number_format($product_hold_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ number_format($project_balance,2) }}
{{ $item->name }} {{ isset($product_total_quantity[$item->id][0]['total_units']) ? $product_total_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_total_quantity[$item->id][0]['size']) ? $product_total_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_total_quantity[$item->id][0]['product_amount']) ? number_format($product_total_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['total_units']) ? $product_sold_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_sold_quantity[$item->id][0]['size']) ? $product_sold_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_sold_quantity[$item->id][0]['product_amount']) ? number_format($product_sold_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['discount_amount']) ? number_format($product_sold_quantity[$item->id][0]['discount_amount'], 2) : 0 }} {{ isset($product_sold_quantity[$item->id][0]['receivable_amount']) ? number_format($product_sold_quantity[$item->id][0]['receivable_amount'], 2) : 0 }} {{ isset($product_received_amount[$item->id][0]['received_amount']) ? number_format($product_received_amount[$item->id][0]['received_amount'], 2) : 0 }} {{ number_format($balance, 2) }}{{ isset($product_available_quantity[$item->id][0]['total_units']) ? $product_available_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_available_quantity[$item->id][0]['size']) ? $product_available_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_available_quantity[$item->id][0]['product_amount']) ? number_format($product_available_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ isset($product_hold_quantity[$item->id][0]['total_units']) ? $product_hold_quantity[$item->id][0]['total_units'] : 0 }} {{ isset($product_hold_quantity[$item->id][0]['size']) ? $product_hold_quantity[$item->id][0]['size'] : '-' }} {{ isset($product_hold_quantity[$item->id][0]['product_amount']) ? number_format($product_hold_quantity[$item->id][0]['product_amount'], 2) : 0 }} {{ number_format($project_balance,2) }}
{{ number_format($total_units, 2) }} {{ number_format($total_size_all, 2) }} {{ $total_size_in }} {{ number_format($total_product_amount, 2) }} {{ number_format($total_units_sold, 2) }} {{ number_format($total_size_sold, 2) }} {{ $total_size_in }} {{ number_format($total_product_amount_sold, 2) }} {{ number_format($total_discount_amount_sold, 2) }} {{ number_format($total_receivable_amount_sold, 2) }} {{ number_format($total_received_amount_sold, 2) }} {{ number_format($total_balance, 2) }} {{ number_format($total_units_vacant, 2) }} {{ number_format($total_size_aviable, 2) }} {{ $total_size_in }} {{ number_format($total_product_amount_vacant, 2) }} {{ number_format($total_units_hold, 2) }} {{ number_format($total_size_hold, 2) }} {{ $total_size_in }} {{ number_format($total_product_amount_hold, 2) }} {{ number_format($total_project_balance,2) }}



@if ($action == 'Show')
{{__('lang.booked_vacant')}} {{__('lang.received_receivable')}} {{__('lang.project_received_receivable')}}
@endif
@stop