@extends('layouts.app') @section('title') RFQ @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Comparative Statement / PR-{{$purchase_request->id}}

Print

Vendor Details

Name {{ Ucfirst($vendor->name)}}
Phone 0{{ $vendor->phone }}
Email {{ $vendor->email }}
Cnic {{ $vendor->cnic }}
Address {{ $vendor->address }}

Company Details

Company {{ Ucfirst($project->project_name)}}
Address {{$project->address}}
Contact 0{{$project->contact}}

Items List

@php $count = 0; $amount = 0; $quantity = 0; $vendor_item_price = 0; $book = array(); @endphp @foreach( $rfq_items as $list ) @php foreach ($is_item_exist as $key => $value) { if(in_array($list->item_id, $value->purchaseOrderItems->pluck('item_id')->toArray())) { $book[] = $list->item_id; } } @endphp @php $item = \App\Item::withTrashed()->find($list->item_id); @endphp @if(in_array($list->item_id , $book)) @else @endif @php $count ++; $amount += ( $list->price * $list->quantity ); if(!in_array($list->item_id , $book)) { $vendor_item_price += ( $price * $list->quantity ); } $quantity += $list->quantity; @endphp @endforeach

Total Item: {{number_format($count, 2)}}

Total Item Quantity: {{number_format($quantity, 2)}}

Total Unit Amount: PKR {{number_format($amount , 2) }}

@if($vendor_item_price > 0 ) Total Vendor Amount: PKR {{number_format($vendor_item_price , 2) }} @endif
@stop @section('js') @stop