@extends('layouts.app') @section('title') View Purchase Request @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Purchase Request / PR-{{$purchase_request->id}} @if($purchase_request->status == 0 && $approval == 1)
{{csrf_field()}}
@endif @if($purchase_request->status == 4) @permission('view-request-for-quotation') Receive CS @endpermission @endif @if($purchase_request->status == 5) @permission('view-comparative-statement') Make PO @endpermission @endif @if($purchase_request->status == 0) @permission('edit-purchase-request') Edit @endpermission @endif Print @permission('delete-purchase-request') Cancel @endpermission @if($purchase_request->status == 3) @permission('send-request-for-quotation') SEND RFQ @endpermission @endif

{{env('APP_NAME')}}


DEMAND / INDENT / PURCHASE REQUISITION

DEPARTMENT: {{$purchase_request->department->department_name}}
PROJECT: {{env('APP_NAME')}}
CONTRACTOR:  
No: PR-{{$purchase_request->id}}
Date: {{date('d-F-Y' , strtotime($purchase_request->created_at))}}

PURPOSE:

 

@foreach( $purchase_request->item as $list ) @php $item = \App\Item::withTrashed()->find($list->item_id); @endphp @endforeach
S.No. Description Make Unit Quantity Total Required as per BOQ Booked till to date Received till to date Balance till to date Now Demanded Remarks
Demanded Sanctioned
{{$item->item_code}} {{$item->item_name}} Non Critical {{$item->manufacture->name}} {{$item->unit}} {{number_format($list->quantity , 2)}}           {{number_format($list->quantity , 2)}} {{$list->description}}
REMARKS

 


 








ORIGINATED BY
Name: {{ $purchase_request->user->name}}
Designation: {{ $purchase_request->user->roles[0]->display_name }}

(To be signed & stamped
in case of contractor)







RECOMMENDED BY (DEPTT. HEAD)
Name:
Designation:








APPROVED BY


@permission('view-purchase-request') Purchase Request @endpermission @if($approval_status > 0) @else @endif Approvals @if($purchase_request->status == 2 ) Rejected @else @if($purchase_request->status < 4) RFQ Sent @else @permission('view-request-for-quotation') RFQ Send {{$total_rfq}} @endpermission @endif @if($purchase_request->status < 5) CS Received @else @if($total_cs == $total_rfq) @else @endif @permission('view-comparative-statement') CS Received{{$total_cs}} @endpermission @endif @php $cancel_po_name = $total_cancel_po->count(). ' Purchase Order cancelled '; @endphp @if($purchase_request->status < 6) PO @else @permission('view-purchase-order') PO {{$total_po}} @endpermission @endif @if($purchase_request->status < 7) Receipts @else @permission('view-po-receipt') Receipts {{$total_recipt}} @endpermission @endif @endif

Purchase Request Details

Project {{ env('APP_NAME')}}
Department {{$purchase_request->department->department_name}}
Created By {{ $purchase_request->user->name}}
Created At {{date('Y-F-d' , strtotime($purchase_request->created_at))}}
Current Status @if($purchase_request->status == 0) Pending @elseif($purchase_request->status == 1) Approvals In Progress @elseif($purchase_request->status == 2) Rejected @elseif($purchase_request->status == 3) RFQ @elseif($purchase_request->status == 4) RFQ SEND {{$total_rfq}} @elseif($purchase_request->status == 5) CS Received {{$total_cs}} @elseif($purchase_request->status == 6) PO Sent {{$total_po}} @elseif($purchase_request->status == 7) @if($pending_po > 0) PO PENDING {{$pending_po}} @elseif($pending_recipt > 0) RECEIPT PENDING{{$pending_recipt}} @elseif($total_rfq > $total_cs) CS PENDING{{$total_rfq - $total_cs}} @else Complete @endif @endif

Approval Status

@foreach(\App\PurchaseRequest::find($purchase_request->id)->approvalStatus as $approval_status)
{{$numering}} : {{ \App\Role::find($approval_status->role_id)->name}} - @if($approval_status->approvel_status == 0) Pending @elseif($approval_status->approvel_status == 1) Approved @elseif($approval_status->approvel_status == 2) Rejected @endif
@endforeach

Purchase Request Items

@foreach( $purchase_request->item as $list ) @php $item = \App\Item::withTrashed()->find($list->item_id); @endphp @endforeach
Code Item - Brand Quantity Price Description Subtotal
{{$item->item_code}} {{$item->item_name}} - {{$item->manufacture->name}} Non Critical {{number_format($list->quantity , 2)}} {{number_format($list->price , 2)}} {{$list->description}} PKR {{number_format($list->price * $list->quantity , 2)}}

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

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

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