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

@if (Session::has('msg'))
{{ Session::get('msg') }}
@endif
JBS

WTC Invoice No : WTC0{{ $orders_list[0]->id }}
Print Date : {{date('d-F-Y')}}

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; $t_total_price = 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; $t_total_price += $total_price; $torder_quantity += $row->quantity; @endphp @endforeach
S.L. ID Item Name Quantity/Pcs Free Purchase Price Total
{{ $i }} {{ $row->product_id }} {{ $row->product_name }} {{ $row->quantity }} {{ $row->pack_type }} {{ $free }} {{ number_format($row->dp_price,2) }} {{ number_format($total_price,2) }}
Total = {!! number_format($torder_quantity) !!} {{ $torder_free }} {{ number_format($t_total_price,2) }}
IN WORDS : {!! numberTowords($t_total_price) !!}
@endsection