@extends('layouts.app') @section('title') {{'Invoice Details'}} @endsection @section('content') @include('layouts.numbertowords')
Invoice Details Back

@if ($orders_list[0]->status == 0) Add Payment @endif @if ($orders_list[0]->status == 0 && Auth::user()->parent_id == "0") Confirm @endif

@if (Session::has('msg'))
{{ Session::get('msg') }}
@endif
@include('layouts.head')

Invoice/Purchase Challan



WPL Invoice No : WPL/P-0{{ $orders_list[0]->id }}
Invoice Date : {{date('d-m-Y', strtotime($orders_list[0]->txn_date)) }}
Supplier Name : {{ $orders_list[0]->supplier_id }} - {{ $orders_list[0]->name }}
Contact Person : {{ $orders_list[0]->person_name }}
Address : {{ $orders_list[0]->address }}
Mobile No. : {{ $orders_list[0]->mobile }}
@php $i=0; $torder_quantity = 0; $torder_free = 0; $torder_qty_free = 0; $grand_total = 0; @endphp @foreach($orders_list as $row) @php $i++; $txn_date = $row->txn_date; $free = $row->free; $total_quantity = $row->quantity * $row->dp_price + $free; $total_price = $row->quantity * $row->dp_price; $torder_free += $free; $torder_qty_free += $total_quantity; $grand_total += $total_price; $torder_quantity += $row->quantity; $sub_total = $total_price ; $cash_amount = $row->cash_amount; $payment_by = $row->payment_by; $due_balance = $grand_total - $cash_amount; @endphp @endforeach @php // $Previous_balance = @$supp_balance->amount; // $Current_balance = $Previous_balance + $due_balance; $Current_balance = @$supp_balance->amount; $Previous_balance = $Current_balance-$due_balance; if ($orders_list[0]->status == 0){ $Previous_balance=$Current_balance; $Current_balance += $due_balance; } @endphp
S.L. ID Item Name Unit Quantity Free Purchase Price Sub Total
{{ $i }} {{ $row->product_id }} {{ $row->product_name }} {{ $row->pack_type }} {{ $row->quantity }} {{ $free }} {{ number_format($row->dp_price,2) }} {{ number_format($sub_total,2) }}
Total = {!! number_format($torder_quantity) !!} {{ $torder_free }} {{ number_format($grand_total,2) }}
IN WORDS : @if($grand_total>=0) {!! numberTowords($grand_total) !!} @else Sorry! The amount is minus = {!! ($grand_total) !!} @endif Payable Amount : {{ number_format($grand_total,2) }}
Comments : {!! $orders_list[0]->remarks !!} Paid Amount : {{ number_format($cash_amount,2) }}
Payment by : {{ $payment_by}} Due Balance : {{ number_format($due_balance,2) }}
Previous Balance : {{ number_format($Previous_balance,2) }}
Current Balance : {{ number_format($Current_balance,2) }}

For,



Authorized Signatory
@endsection