@extends('admin.layout.master') @section('title','Comparative Statement') @section('custom_style') @endsection @section ('content')

{{__('obs.comparative')}} {{__('obs.statement')}}

{{-- end --}}
@csrf @php $tr=''; $status=$quotations->where('status',1); //dd(count($status)>0); @endphp @forelse ($quotations as $a=>$quotation) @php $amount[$quotation->id]=0; $tr.=''; @endphp @empty @endforelse {!! $tr.'' !!} @php $p=1; @endphp @forelse ($requisition->details as $i=>$item) @forelse ($quotations as $k=>$quotation) @php // $product= $quotation->where('product_id',$item->product_id)->where('product_id',$item->product_id); $product= $quotation->details->where('product_id',$item->product_id); @endphp @if(count($product)>0) @php $amount[$quotation->id]+=($product->first()->quantity*$product->first()->rate); @endphp @endif @empty @endforelse @empty @endforelse @forelse ($quotations as $a=>$quotation) @empty @endforelse @forelse ($quotations as $a=>$quotation) @empty @endforelse
# {{__('obs.product')}} {{__('obs.req.')}}
{{__('obs.qty')}}
@if(count($status)==0) @endif {{-- --}} {{__('obs.qty')}}{{__('obs.rate')}}{{__('obs.total')}}{{__('obs.note')}}
{{ ($p++) }} {{ $item->product->name_eng }} {{ $item->quantity }} {{ $product->first()->quantity }} {{ $product->first()->rate }}{{ ($product->first()->quantity*$product->first()->rate) }}{{ $item->note }}
{{__('obs.total')}} : {{$amount[$quotation->id]}}
{{__('obs.discount')}} : {{$quotation->discount.'%'}} {{($amount[$quotation->id]*($quotation->discount/100))}}

@include('inventory.prepurchase.requisition.requisition_details_modal') @endsection @section('script') @stop