{{-- @extends('docs.master', ['title' => 'Stock Report']) --}} @extends( 'docs.master', ['title'=> 'Project Report ']) @section('content')

{{settings()->get('company_name')}}

{{$model[0]->projectname}} Details Report

Dated: {{date('d-m-Y')}}
{{--

{{$model[0]->projectname}} Report

As On
{{date('M-d-Y h:i A')}}



--}}
{{$i=1}} @foreach($model as $item) @endforeach @php $rate =array_sum(array_column($model, 'total_sale'))/ array_sum(array_column($model, 'total_sale_area')); $balance =array_sum(array_column($model, 'total_sale'))- array_sum(array_column($model, 'total_receipts')); $Receipt =(array_sum(array_column($model, 'total_receipts'))/array_sum(array_column($model, 'total_sale')))* 100 ; @endphp
Sold Unit
# Project Unit Type Total Unit Sold Unit Sold Area Sold Price Rate / SQFT Receipts Receipts %AGE Balance
{{$i++}} {{$item->projectname}} {{$item->unittype}} {{$item->total_unit}} {{$item->sold_count}} {{number_format($item->total_sale_area,0)}} {{number_format($item->total_sale,0)}} {{number_format($item->total_sale/$item->total_sale_area,0)}} {{number_format($item->total_receipts,0)}} {{number_format(($item->total_receipts/$item->total_sale)*100,0)}} {{number_format(($item->total_sale - $item->total_receipts),0)}}



{{$i=1}} {{-- @dd($model) --}} @foreach($model as $item) @if($item->available_count >0) @endif @endforeach @php $rate_available =array_sum(array_column($model, 'available_price'))/ array_sum(array_column($model, 'available_area')); @endphp
Available Unit
# Project Unit Type Total Unit Available Unit Avail Area Available Price Rate / SQFT
{{$i++}} {{$item->projectname}} {{$item->unittype}} {{$item->total_unit}} {{$item->available_count}} {{number_format($item->available_area,0)}} {{number_format($item->available_price,0)}} {{number_format($item->available_price/$item->available_area,0)}}

Printed On: {{date('d-m-Y h:i:s A')}} by {{Auth::User()->name}}

@endsection