@extends('layouts.app') @section('title') Dashboard @stop @section('breadcrumb') @stop @section('css') @stop @section('content')
PKR
{{number_format($data['total_purchase'] , 2)}}

Total Purchasing

PKR
{{number_format($data['total_monthly_purchase'] , 2)}}

{{date('F')}}

PKR
{{number_format($data['total_pay_purchase'] , 2)}}

Paid Amount

Purchase Requests For Approval

@if(Session::has('success')) @endif @if( $purchase_requests->count() > 0 ) @foreach( $purchase_requests as $list ) @endforeach @endif
Id# Department Created By Action
PR-{{$list->id }} {{ $list->department->department_name }} {{ $list->user->name}} view
{{csrf_field()}}

Purchase Orders For Approval

@if(Session::has('success-po')) @endif @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; $po = \App\PurchaseOrder::find($poid ); $advanceAmount = ( $po->total_amount*$po->advance) / 100; @endphp @endforeach @endforeach
PR# PO# Department Created By Total Amount Advance Action
PR-{{$list->id }} PR-{{$po->id }} {{ \App\Department::withTrashed()->find($list->department_id)->department_name }} {{ $list->user->name}} {{ number_format($po->total_amount) }} {{number_format($advanceAmount) . ' (' .$po->advance .'%)' }} View
{{csrf_field()}}
Cancel

Material Issue requests For Approval

@if(Session::has('success-mir')) @endif @if( $material_issue_requests->count() > 0 ) @foreach( $material_issue_requests as $list ) @if($approvalCount[$list->id] > 0 ) @endif @endforeach @endif
MIR # Department Request By Request date Release Status Action
MIR-{{$list->id }} {{ $list->department->department_name }} {{ $list->request_person_name }} {{ date('d-F-Y' , strtotime($list->request_date)) }} {{ucfirst($list->status)}} @if($list->status == 'pending') @endif

Latest Purchase Requests

@if( $data['purchase_request_latest']->count() > 0 ) @foreach( $data['purchase_request_latest'] as $list ) @endforeach @endif
Id# Department Created By Current Status
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

Latest Purchase Orders

@foreach($data['total_purchase_orders'] as $po ) @php $vendor = \App\PurchaseRequestVendor::find( $po->vendor_id); @endphp @endforeach
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
@stop @section('js') @Stop