@extends('admin.layouts.app')
@section('title', 'Customer wise Return Ledger')
@push('styles')
@endpush
@section('container')
Customer wise Return Ledger
@if (session('success'))
{{ session('success') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
@if(count($orders)>0)
| SL |
Date |
Order No |
Product Details |
Return Rate |
Quantity |
Total Return Amount |
@php
$totalQty = 0;
$totalAmount = 0;
@endphp
@foreach ($orders as $key => $data)
@foreach ($data->saleOrderDetails as $item)
@php
$totalQty += $item->quantity;
$totalAmount += $item->total_amount;
@endphp
| {{ $loop->iteration }} |
{{ date('d-m-Y',strtotime($data->date)) }} |
{{ $data->sale_no }} |
{{ $item->product->name??'' }} |
{{ $item->unit_price }} |
{{ $item->quantity }} |
{{ $item->total_amount }} |
@endforeach
@endforeach
| Total |
{{ $totalQty }} |
{{ $totalAmount }} |
@endif
@endsection
@push('scripts')
@endpush