@extends('layouts.app') @section('title') RFQ @stop @section('breadcrumb') @stop @section('css') @stop @section('content')
@foreach($purchase_request_rfq as $pr ) @foreach(json_decode($pr->rfq_vendors) as $vendors ) @php $list = \App\PurchaseRequestVendor::find($vendors ); $total_item = \App\RequestForQuotation::getVendorTotalItems($list->id, $pr->id ) @endphp @if(\App\ComparativeStatement::countCs( $pr->id , $list->id) > 0 && $status == 'cs-receive') @elseif(\App\ComparativeStatement::countCs( $pr->id , $list->id) == 0 && $status == 'cs-pending') @elseif($status == 'rfq-sent') @endif @endforeach @endforeach
PR# Vendor Comparative Statement Total Items Action
@permission('view-purchase-request') PR-{{$pr->id}} @else PR-{{$pr->id}} @endpermission @permission('view-vendor') {{ucfirst($list->name)}} @else {{ucfirst($list->name)}} @endpermission Received [ {{ $total_item }} ] @permission('list-request-for-quotation') View @endpermission
@permission('view-purchase-request') PR-{{$pr->id}} @else PR-{{$pr->id}} @endpermission @permission('view-vendor') {{ucfirst($list->name)}} @else {{ucfirst($list->name)}} @endpermission Pending [ {{ $total_item }} ] @permission('list-request-for-quotation') View @endpermission
@permission('view-purchase-request') PR-{{$pr->id}} @else PR-{{$pr->id}} @endpermission @permission('view-vendor') {{ucfirst($list->name)}} @else {{ucfirst($list->name)}} @endpermission @if(\App\ComparativeStatement::countCs($pr->id , $list->id) > 0) Received @else Pending @endif [ {{ $total_item }} ] @permission('list-request-for-quotation') View @endpermission
@stop @section('js') @stop