@extends('layouts.app') @section('title') Purchase Order Receipt @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Receipt # {{$receipt->id}} Receipt Date : {{date('d-F-Y h:i a' , strtotime($receipt->receipt_date))}}
@if(!empty($receipt->receipt_pay_date)) Pay Date : {{date('d-F-Y h:i a' , strtotime($receipt->receipt_pay_date))}} @endif

@if($receipt->status == 0)

UNPAID

@elseif($receipt->status == 1)

PAID

@elseif($receipt->status == 2)

PARTIALLY PAID

@endif

{{env('APP_NAME')}}

PURCHASE ORDER RECEIPT
RECEIPT ID
{{$receipt->id}}
STATUS
@if($receipt->status == 0) {{ 'UNPAID' }} @elseif($receipt->status == 1) {{ 'PAID' }} @elseif($receipt->status == 2) {{ 'PARTIALLY PAID' }} @endif
RECEIPT DATE
{{date('d-F-Y' , strtotime( $receipt->receipt_date))}}
BILL TO:

Items Print @if($receipt->status == 0 || $receipt->status == 2) @permission('pay-po-receipt') @endpermission @endif GRN

@php $count = 0; $quantity = 0; $vendor_item_price = 0; @endphp @foreach($receipt->ReceiptItems as $list ) @php $item = \App\Item::withTrashed()->find($list->item_id); @endphp @php $count ++; $quantity += $list->pass_quantity; @endphp @endforeach
Code Item - Brand Description Quantity Price
{{$item->item_code}} {{$item->item_name}} - {{$item->brand}} {{$purchase_request->item->where('item_id' , $list->item_id )->first()->description}} {{number_format($list->pass_quantity, 2)}}
Total Item(s) Item(s) Qty Amount To Pay Paid Amount Due Amount
{{number_format($count, 2)}} {{number_format($quantity, 2)}} PKR {{number_format($receipt->total_amount , 2) }} PKR {{number_format($receipt->total_pay_amount , 2)}} PKR {{number_format($receipt->remaining_amount , 2)}}
Authorized By
Name Date Signature
@if($receipt->account_officer_name) {{ $receipt->account_officer_name }} @else {{'.'}} @endif @if($receipt->account_officer_name_date) {{date('d-F-Y' , strtotime($receipt->account_officer_name_date))}} @else {{'.'}} @endif
@if($receipt->receipt_pay_date) Pay Date : {{date('d-F-Y' , strtotime($receipt->receipt_pay_date))}}
@endif Date : {{date('d-F-Y')}}
Print By : {{ Ucfirst(Auth::user()->name) }}
Accounts Officer Name & Signature

Total Item: {{number_format($count, 2)}}

Total Item Quantity: {{number_format($quantity, 2)}}

Total Amount To Pay: PKR {{number_format($receipt->total_amount , 2) }}

Total Paid: PKR {{number_format($receipt->total_pay_amount , 2) }}

Remaining Amount: PKR {{number_format($receipt->remaining_amount , 2) }}

GOOD RECEIVING NOTE

PO No: {{$purchase_order->id}}

Supplier Name {{ Ucfirst($vendor->name)}}
Delivery Date : {{date('d-F-Y' , strtotime($purchase_order->delivery_date))}}
Received By {{Ucfirst($receipt->po_receiver_name)}}
Receiving Date {{date('d-F-Y' , strtotime($receipt->po_receiveing_date))}}

{{env('APP_NAME')}}

GOODS RECEIVED NOTE
PO NO.
{{$purchase_order->id}}
INVOICE NO
@if(!empty( $receipt->invoice_no) ) {{ $receipt->invoice_no }} @else {{'.'}}@endif
Received From
Name Phone STRN NTN T. C. No
{{ Ucfirst($vendor->name)}} 0{{ $vendor->phone_number}} {{ $vendor->stn}} {{ $vendor->ntn}} {{ $vendor->test_certificate}}
@php $count = 0; $quantity = 0; $vendor_item_price = 0; $pass_quantity = 0; @endphp @foreach($receipt->ReceiptItems as $list ) @php $item = \App\Item::withTrashed()->find($list->item_id); $item_cs = \App\ComparativeStatement::getItemPrices($purchase_request_id , $vendor->id , $list->item_id)['item']; @endphp @php $count ++; $quantity += $list->quantity; $pass_quantity += $list->pass_quantity; @endphp @endforeach
Code Item Description Receive Quantity Pass Quantity Price
{{$item->item_code}} {{$item->item_name}} - {{$item->brand}} {{$purchase_request->item->where('item_id' , $list->item_id )->first()->description}} {{number_format($list->quantity, 2)}} {{number_format($list->pass_quantity, 2)}} PKR {{number_format($item_cs->price , 2)}}
Received BY
{{ucfirst($receipt->po_receiver_name)}}
Received Date
{{date('d-F-Y' , strtotime($receipt->po_receiveing_date))}}
Material Inspection Documents Received
Yes @if(!empty($receipt->quality_insu_docs)) @endif
No @if(empty($receipt->quality_insu_docs)) @endif
Approved By
Name Date Signature
@if($receipt->quality_test_inspector_name) {{$receipt->quality_test_inspector_name}}@else {{'.'}} @endif @if($receipt->quality_test_inspector_date) {{date('d-F-Y' , strtotime($receipt->quality_test_inspector_date))}} @else {{'.'}} @endif
Date : {{date('d-F-Y')}}
Print By : {{ Ucfirst(Auth::user()->name) }}
Name & Signature

Total Item: {{number_format($count, 2)}}

Pass Item Quantity: {{number_format($pass_quantity, 2)}}

Total Amount To Pay: PKR {{number_format($receipt->total_amount , 2) }}

@if(!empty($receipt->documents))

Invoice Documents

@php $images = json_decode($receipt->documents , true); $file_ext = array('docx','pdf'); echo '
'; for($img = 0; $img < count($images); $img++) { $url = asset('storage/uploads/'.$images[$img]); $urlExt = pathinfo($url, PATHINFO_EXTENSION); if (!in_array($urlExt, $file_ext)) { echo '
'; } if (in_array($urlExt, $file_ext)) { echo '
'; } } echo '
'; @endphp @endif
@Stop @section('js') @stop