@extends('layouts.app') @section('title') Pending CS Approvals @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Purchase Orders Approval Pending

@foreach( $approval_pending_cs as $list ) @php $poid = 0; @endphp @foreach($list->cs_approval_status as $po_id) @php $poid = $po_id->purchase_order_id; @endphp @endforeach @endforeach
Id# Department Created By Current Status 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 @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
{{csrf_field()}}
Cancel
@stop @section('js') @stop