@extends('user.layouts') @section('title', 'Financial Track') @section('header') @endsection @section('content')

Financial Track

Pack Sum

{{ $pack_sum }}

Tax Sum

{{ $tax_sum }}

Agent Sum

{{ $agent_sum }}

Total Revenue

{{ $total_revenue }}
@csrf
@php $sn = 1; @endphp @php $sn = 1; @endphp @foreach ($business as $finance) @php $data = $check_vendor[$finance->id] ?? [ 'packPrice' => 0, 'taxAmount' => 0, 'commissionAmount' => 0, 'revenue' => 0 ]; @endphp {{-- 👉 EXACT DB VALUES --}} @endforeach
SN NAME PHONE NO TYPE AGENT ID REFERRAL ID PACK PRICE TAX PRICE AGENT REFERRAL TOTAL REVENUE
{{ $sn++ }} {{ $finance->name }} {{ $finance->phone_number }} {{ $finance->user->type ?? 'Self' }} {{ $finance->user->agent_code ?? '-' }} {{ $finance->user->to_reffer ?? '-' }}₹ {{ number_format($data['packPrice'], 2) }} ₹ {{ number_format($data['taxAmount'], 2) }} ₹ {{ number_format($data['commissionAmount'], 2) }} ₹ {{ number_format($data['revenue'], 2) }}
@endsection @section('footer') @endsection