@extends('layouts.app') @section('title') View Purchase Request @stop @section('breadcrumb')
@stop @section('content')Id# | Department | Created By | Current Status | Type | Action |
---|---|---|---|---|---|
PR-{{$list->id }} | {{ \App\Department::withTrashed()->find($list->department_id)->department_name }} | {{ $list->user->name}} | @if($list->status == 0) Pending @elseif($list->status == 1) Approvals In Progress @elseif($list->status == 2) Rejected (remark ) @elseif($list->status == 3) RFQ @elseif($list->status == 4) @permission('view-request-for-quotation') RFQ SEND @endpermission @elseif($list->status == 5) @permission('view-comparative-statement') CS Received @endpermission @elseif($list->status == 6) @permission('view-purchase-order') PO Sent @endpermission @elseif($list->status == 7) @php $getPrStatus = \App\PurchaseRequest::getPrStatus($list->id); @endphp @if( $getPrStatus['pending_po'] > 0) @permission('view-purchase-order') PO PENDING {{ $getPrStatus['pending_po'] }} @endpermission @elseif( $getPrStatus['pending_recipt'] > 0) @permission('view-po-receipt') RECEIPT PENDING{{$getPrStatus['pending_recipt']}} @endpermission @elseif($getPrStatus['total_rfq'] > $getPrStatus['total_cs']) @permission('view-request-for-quotation') CS PENDING{{$getPrStatus['total_rfq'] - $getPrStatus['total_cs']}} @endpermission @else Complete @endif @endif | @if($list->pr_type == 'direct_pr') Cash @else Fully Processed @endif | @permission('view-purchase-request') @endpermission @permission('delete-purchase-request') @endpermission @if($list->status == 0 && $list->pr_type == 'indirect_pr') @permission('edit-purchase-request') @endpermission @endif |