@extends('layouts.app') @section('title') All Departments @stop @section('breadcrumb')
@stop @section('content')Id# | Project | Department | Created By | Current Status | Action |
---|---|---|---|---|---|
PR-{{$list->id }} | {{ \App\Project::withTrashed()->find($list->project_id)->project_name }} | {{ \App\Department::withTrashed()->find($list->department_id)->department_name }} | {{ $list->created_by}} | @if($list->status == 0) Pending @elseif($list->status == 1) Approvals In Progress @elseif($list->status == 2) Rejected @elseif($list->status == 3) RFQ @elseif($list->status == 4) RFQ SEND @elseif($list->status == 5) CS Received @elseif($list->status == 6) PO Sent @elseif($list->status == 7) @php $getPrStatus = \App\PurchaseRequest::getPrStatus($list->id); @endphp @if( $getPrStatus['pending_po'] > 0) PO PENDING {{ $getPrStatus['pending_po'] }} @elseif( $getPrStatus['pending_recipt'] > 0) RECEIPT PENDING{{$getPrStatus['pending_recipt']}} @elseif($getPrStatus['total_rfq'] > $getPrStatus['total_cs']) CS PENDING{{$getPrStatus['total_rfq'] - $getPrStatus['total_cs']}} @else Complete @endif @endif | view |
Id# | Project | Department | Created By | Current Status |
---|---|---|---|---|
PR-{{$list->id }} | {{ \App\Project::withTrashed()->find($list->project_id)->project_name }} | {{ \App\Department::withTrashed()->find($list->department_id)->department_name }} | {{ $list->created_by}} | @if($list->status == 0) Pending @elseif($list->status == 1) Approvals In Progress @elseif($list->status == 2) Rejected @elseif($list->status == 3) RFQ @elseif($list->status == 4) RFQ SEND @elseif($list->status == 5) CS Received @elseif($list->status == 6) PO Sent @elseif($list->status == 7) @php $getPrStatus = \App\PurchaseRequest::getPrStatus($list->id); @endphp @if( $getPrStatus['pending_po'] > 0) PO PENDING {{ $getPrStatus['pending_po'] }} @elseif( $getPrStatus['pending_recipt'] > 0) RECEIPT PENDING{{$getPrStatus['pending_recipt']}} @elseif($getPrStatus['total_rfq'] > $getPrStatus['total_cs']) CS PENDING{{$getPrStatus['total_rfq'] - $getPrStatus['total_cs']}} @else Complete @endif @endif |
ID# | Vendor | Total Item | Status | Action |
---|---|---|---|---|
PO-{{$po->id}} | {{ucfirst($vendor->name)}} | [ {{\App\PurchaseOrder::getPurchaseOrderTotalItems($po->id , $po->purchase_request_id)}} ] |
@if($po->status == 1)
{{ 'PO SENT' }}
@elseif ($po->status == 2)
{{ 'PO RECEIVED' }}
@elseif($po->status == 3)
{{ 'PARTIALLY RECEIVED' }}
@endif
|
@if($po->status == 1) Cancel @else View @endif |