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

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

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

Sales Return Challan



WTC Sales Return No : WTC/SRI-{{ $orders_list[0]->id }}
Return Date : {{date('d-m-Y', strtotime($orders_list[0]->txn_date)) }}
Customer 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; $total_commission_tk = 0; @endphp @foreach($orders_list as $row) @php $i++; $txn_date = $row->txn_date; $free = $row->quantity * $row->free; $total_quantity = $row->quantity + $free; $total_price = $row->quantity * $row->tp_price; $torder_free += $free; $torder_qty_free += $total_quantity; $t_total_price += $total_price; $torder_quantity += $row->quantity; $commission_tk = ($total_price * $row->commission)/100; $total_commission_tk += $commission_tk; $sub_total = $total_price - $commission_tk; $grand_total = $t_total_price - $total_commission_tk; @endphp @endforeach
S.L. ID Item Name Unit Quantity Sales Price Amount Comm. % Comm. Tk. Total
{{ $i }} {{ $row->product_id }} {{ $row->product_name }} {{ $row->pack_type }} {{ $row->quantity }} {{ number_format($row->tp_price,2) }} {{ number_format($total_price,2) }} {{ number_format($row->commission,2) }} {{ number_format($commission_tk,2) }} {{ number_format($sub_total,2) }}
Total = {!! number_format($torder_quantity) !!} {{ number_format($t_total_price,2) }} {{ number_format($total_commission_tk,2) }} {{ number_format($grand_total,2) }}
IN WORDS : {!! numberTowords($grand_total) !!}
@endsection