@extends('layouts.app') @section('content')

Sale Report

@csrf
From:
To:
File No:
Member:
@csrf
From:
To:
File No:
Member:
@if (count($sales))
@foreach ($sales as $sale) sales_id)->first(); $ref_amount1 = App\ReferenceIncome::where('sell_id', $sale->sales_id)->sum('rest_amount'); $ref_with1 = App\ReferenceWithdraw::where('sell_id', $sale->sales_id)->sum('amount'); ?> @endforeach
SL Date Refferal ID Refference name File no Member ID Member Name Client Paid Client Due amount Referral commision balance Referral withdraw balance Company Balance Action
{{ $loop->index + 1 }} {{ Carbon\Carbon::parse($sale->date)->format('d-m-Y') }} {{ $sale->refference_id }} {{ $sale->refference_name }} {{ $salDetail->sale_no }} {{ $sale->member->serial_id }} {{ $sale->member->name }} {{ $sale->paid }} {{ $sale->due_amount }} {{ $ref_amount1 }} {{ $ref_with1 }} {{ $sale->company_log }}
{{--
Total refferal commission:
Total booking amount: {{ $total_booking_amount }} tk
Total installment amount: {{ $total_install_amount }} tk
Total এককালীন amount: {{ $total_ekkalin_amount }} tk

--}}
Total paid amount: {{ $total_paid_amount }} tk
Total due amount: {{ $total_due_amount }} tk
Referral commision balance: {{ $ref_amount }} tk
Referral withdraw balance: {{ $ref_with }} tk
Total Company Balance now: {{ $total }} tk
@else
No Data Found!
@endif
@include('extra.delete-modal') @endsection @section('footer-script') @endsection