@extends('user.layouts')
@section('title', 'Financial Track')
@section('header')
@endsection
@section('content')
{{-- ============================================================
PAGE HEADER
============================================================ --}}
{{-- ============================================================
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
============================================================ --}}
{{-- ============================================================
FINANCIAL RECORDS TABLE
============================================================ --}}
Financial Records
Detailed pack, tax, agent and revenue information
| SN |
NAME |
PHONE NO |
TYPE |
AGENT ID |
REFERRAL ID |
PACK PRICE |
TAX PRICE |
AGENT REFERRAL |
TOTAL REVENUE |
@php
$sn = 1;
@endphp
@foreach ($business as $finance)
@php
$data = $check_vendor[$finance->id] ?? [
'packPrice' => 0,
'taxAmount' => 0,
'commissionAmount' => 0,
'revenue' => 0
];
@endphp
{{-- SN --}}
|
{{ $sn++ }}
|
{{-- NAME --}}
{{ $finance->name ?? '-' }}
|
{{-- PHONE --}}
{{ $finance->phone_number ?? '-' }}
|
{{-- TYPE --}}
{{ optional($finance->user)->type ?? 'Self' }}
|
{{-- AGENT ID --}}
{{ optional($finance->user)->agent_code ?? '-' }}
|
{{-- REFERRAL ID --}}
{{ optional($finance->user)->to_reffer ?? '-' }}
|
{{-- PACK PRICE --}}
₹ {{ number_format($data['packPrice'] ?? 0, 2) }}
|
{{-- TAX PRICE --}}
₹ {{ number_format($data['taxAmount'] ?? 0, 2) }}
|
{{-- AGENT REFERRAL --}}
₹ {{ number_format($data['commissionAmount'] ?? 0, 2) }}
|
{{-- TOTAL REVENUE --}}
₹ {{ number_format($data['revenue'] ?? 0, 2) }}
|
@endforeach
@endsection
@section('footer')
{{-- ============================================================
JQUERY
============================================================ --}}
{{-- ============================================================
DATATABLE CORE
============================================================ --}}
{{-- ============================================================
EXPORT DEPENDENCIES
============================================================ --}}
{{-- ============================================================
DATATABLE BUTTONS
============================================================ --}}
@endsection