@extends('layouts.app_rest') @section('content')
@php $bussiness = App\Models\Business::first(); @endphp
BACK
{{ $transaction->ref_no}}
image

@if(isset($bussiness)) @if(isset($bussiness->address)) {{$bussiness->address}} @endif @if(isset($bussiness->address_two)) , {{$bussiness->address_two}}
@endif @if(isset($bussiness->city)) {{$bussiness->city}}
@endif @if(isset($bussiness->country)) {{$bussiness->country}}
@endif @if(isset($bussiness->mobile)) {{$bussiness->mobile}} @endif @if(isset($bussiness->phone)) ,{{$bussiness->phone}} @endif @endif


Issue For:
{{$transaction->first_name}}
{{$transaction->address_one}}
{{$transaction->email}}
{{$transaction->mobile_no}} {{$transaction->telephone_no ? '/'. $transaction->telephone_no : ''}}
Ref No :
{{ $transaction->ref_no}}
Issue At :
{{ $transaction->created_at}}
Total Qty :
{{$transaction->total_quantity}}
Payment Status :
@if($transaction->payment_status == 'paid') {{ $transaction->payment_status }} @elseif($transaction->payment_status == 'patial') {{ $transaction->payment_status }} @else {{ $transaction->payment_status }} @endif
Total Amount :
Rs. {{ number_format($transaction->final_total, 2) }}
Total Paid :
Rs. {{ number_format($total_paid, 2) }}
Remaining Amount :
Rs. {{ number_format($due_amount, 2) }}
@foreach($purchase_lines as $line) @endforeach
S.NO Product QTY PRICE Discount AMOUNT
{{ $line['sr'] }} {{ $line['product_name'] }} {{ $line['quantity'] }} {{ $line['unit_cost'] }} {{ $line['discount'] }} {{ $line['line_total'] }}
@foreach($payments as $payment) @endforeach
Method Amount Refence No Note
{{ $payment->method }} {{ number_format($payment->amount, 2) }} {{ $payment->payment_ref_no }} {{ $payment->note }}

Purchase Note
{!! $transaction->details !!}
Subtotal
Rs. {{ number_format($sub_total, 2) }}
Tax
Rs. {{ number_format($transaction->tax_amount, 2) }}
Discount
Rs. {{ number_format($discount_amount, 2) }}
Grand Total
Rs. {{ number_format($grand_total, 2) }}
@endsection @section('javascript') @endsection