@extends('layouts.app') @section('content')

Invoice - {{$purchase->invoice_no}}

@lang('Account'):
{{ $purchase->customer->account_name }} ({{ $purchase->customer->account_no }})
{{ $purchase->customer->address }}
{{ $purchase->customer->contact }}
{{ $purchase->customer->phone}}
Invoice No: #{{ $purchase->invoice_no }}
Bill No: #{{ $purchase->bill_no }}
Date: {{ $purchase->transaction_date }}
Total Amount: {{ $total }}
Total Paid: {{ $paid_amount }}
Due: {{ $due_amount }}
@php $total_before_tax = 0.00; @endphp @foreach($purchase->sell_lines as $purchase_line) @php $total_before_tax += ($purchase_line->quantity * $purchase_line->unit_price); @endphp @endforeach
# @lang('Code') @lang('Description') @lang('Qty') @lang('Rate') @lang('Discount') @lang('Amount')
{{ $loop->iteration }} {{ $purchase_line->product->code }} {{ $purchase_line->product->name }} {{ $purchase_line->quantity }} {{ $purchase_line->unit_price }} {{ $purchase_line->unit_price * $purchase_line->quantity }}
@lang('Total'): {{ $total_before_tax }}
@endsection