@extends('layouts.app') @section('title') Sold Inventory Statement @stop @section('breadcrumb') @stop @section('css') @stop @section('content') @php $society = false; $highrise = false; $size = ''; if ($projectType->id == App\ProjectType::society) { $society = true; $size = \App\ProjectType::society_size; } if ($projectType->id == App\ProjectType::high_rise) { $highrise = true; $size = \App\ProjectType::high_rise_size; } @endphp

@foreach($project_names as $key => $project_name) {{ $project_name }} @if($key < count($project_names) - 1) , @endif @endforeach

Sold Inventory Statement

{{date(('M d,Y'),strtotime($from_date))}} - {{date(('M d,Y'),strtotime($to_date))}}
Date: {{date('d-m-Y')}}
User ID:   {{Auth::user()->name}}
@if($type == 'with_filter')
{{ csrf_field() }}
@endif @foreach($inventories as $inventory) @if($inventory->floor) @if( ($filter_type == 'filter' && $block > 0 && $block == $inventory->floor->unit_block->id) || $filter_type == 'all' ) @endif @endif @endforeach
Sr No. Date Unit No. Unit Floor. Unit Block. Customer Size Category Inventory Price Discount Net Price
{{$count++}} {{date('d-m-Y', strtotime($inventory->customer_property->booking_date)) }} {{$inventory->unit_number}} {{$inventory->floor ? $inventory->floor->name : ''}} @if(!empty($inventory->floor)) @if(!empty($inventory->floor->unit_block)) {{$inventory->floor->unit_block->name}} @endif @endif {{$inventory->customer_property->customer->name}} @if($inventory->size) {{$inventory->size->name}} {{$size}} @endif @foreach($inventory->categories as $c) @if($loop->last) {{$c->category->name}} ({{$c->category->percent}} %) @else {{$c->category->name}} ({{$c->category->percent}} %), @endif @endforeach {{ number_format($inventory->total_price)}} @if(($inventory->total_price - $inventory->customer_property->net_pay) > 0 ) {{ number_format( $inventory->total_price - $inventory->customer_property->net_pay ) }} @else {{'-'}} @endif @if($inventory->customer_property){{number_format($inventory->customer_property->net_pay)}} @endif
{{$sqrt}} {{$size}} {{number_format($inventory_price)}} {{number_format($discount_price)}} {{number_format($net_price)}}
Sold Inventory Amount {{number_format($net_price)}}
Received Amount {{number_format($receivedAmt)}}
Remaining Amount {{number_format($net_price - $receivedAmt)}}
@stop @section('js') @stop