@extends('layouts.master') @section('title', 'Vendor Report') @section('body') @endsection @section('content')

Vendor Report

@csrf
@if(isset($vendor))

Vendor: {{ $vendor->vendor_name }}

Summary

Total PO {{ $pos->count() }} Total GRN {{ $grns->count() }}
Total PO Items {{ $poItems->count() }} Total GRN Items {{ $grnItems->count() }}

Purchase Order List

@foreach($pos as $po) @endforeach
PO Date PO Number Company Total Amount
{{ \Carbon\Carbon::parse($po->po_date)->format('d/m/Y') }} {{ $po->po_prefix }}/{{ $po->po_financial_year }}/{{ $po->po_number }} {{ $po->company->company_name ?? '' }} {{ $po->po_grand_total }}

GRN List

@foreach($grns as $grn) @endforeach
GRN Date GRN Number PO Number Total Amount
{{ \Carbon\Carbon::parse($grn->grn_date)->format('d/m/Y') }} {{ $grn->grn_prefix }}/{{ $grn->grn_financial_year }}/{{ $grn->grn_number }} {{ $grn->po->po_prefix ?? '' }}/{{ $grn->po->po_financial_year ?? '' }}/{{ $grn->po->po_number ?? '' }} {{ $grn->grn_grand_total }}

PO Items

@foreach($poItems as $item) @endforeach
Item Name Qty Unit Price Sub Total
{{ $item->item_name }} {{ $item->item_qty }} {{ $item->item_unit_price }} {{ $item->item_sub_total }}

GRN Items

@foreach($grnItems as $item) @endforeach
Item Name Received Qty Unit Price Sub Total
{{ $item->item_name }} {{ $item->received_qty }} {{ $item->item_unit_price }} {{ $item->item_sub_total }}
@endif
@endsection @section('scripts') @endsection