@extends('user.layouts') @section('title', 'Financial Track') @section('header') @endsection @section('content')
{{-- ============================================================ PAGE HEADER ============================================================ --}}

Financial Track

View financial summary, revenue and commission details

{{-- ============================================================ SUMMARY CARDS ============================================================ --}}
{{-- PACK SUM --}}

Pack Sum

₹ {{ number_format((float) $pack_sum, 2) }}

{{-- TAX SUM --}}

Tax Sum

₹ {{ number_format((float) $tax_sum, 2) }}

{{-- AGENT SUM --}}

Agent Sum

₹ {{ number_format((float) $agent_sum, 2) }}

{{-- TOTAL REVENUE --}}

Total Revenue

₹ {{ number_format((float) $total_revenue, 2) }}

{{-- ============================================================ DATE FILTER ============================================================ --}}
Filter Financial Records

Select a date range to view financial records

@csrf
{{-- FROM DATE --}}
{{-- TO DATE --}}
{{-- SEARCH --}}
{{-- ============================================================ FINANCIAL RECORDS TABLE ============================================================ --}}

Financial Records

Detailed pack, tax, agent and revenue information

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