@extends('layouts.master') @section('page_title','View Details') @section('title','Purchases Details') @section('main_item','Purchases') @section('sub_item','Purshases Details') @section('content')

Purchase Details: (Reference Number: #{{$grn->ref_no}})

Supplier:
{{$grn->supplier->business_name}}
{{$grn->supplier->name}}
{{$grn->supplier->landmark}}
{{$grn->supplier->city}}
Mobile: {{$grn->supplier->mobile}}
Email: {{$grn->supplier->email}}
Reference No: #{{$grn->ref_no}}
Date: {{explode(' ', $grn->grn_date)[0]}}
Purchase Status: Received
Payment Status: Paid
@foreach ($grn->grnItems as $item) @endforeach
Product Name Purchase Quantity Purchase Price Subtotal
{{$item->product->product_name}} {{$item->qty.' '.$item->product->unit->short_name}} {{number_format($item->grn_unit_cost,2)}} {{number_format($item->grn_line_total,2)}}
Net Total Amount: ₨ {{number_format($grn->grn_total,2)}}
Discount: (-) ₨ {{number_format($grn->grn_discount,2)}}
Purchase Total: ₨ {{number_format($grn->grn_nettotal,2)}}
@endsection @section('scripts') @endsection