Analytics Dashboard

Real-time transaction insights for today

{{ $today }}
Today's Total Transactions
RS. {{ number_format($todayTotalTransaction, 2) }}

Updated just now

Search by Lab Name

Lab Performance

@foreach($labsWithTransactions as $lab)
@php // Format lab name: First word + first letters of subsequent words $labName = $lab->lab_name; $words = explode(' ', trim($labName)); $firstWord = $words[0]; if (count($words) > 1) { // Get first letters of remaining words $firstLetters = ''; for ($i = 1; $i < count($words); $i++) { $firstLetters .= strtoupper(substr($words[$i], 0, 1)); } $formattedLabName = $firstWord . ' ' . $firstLetters; } else { $formattedLabName = $firstWord; } @endphp {{ $formattedLabName }}
{{ $lab->transaction_count }}

RS. {{ number_format($lab->total_amount, 2) }}

@endforeach

Route Performance

@foreach($routesWithTransactions as $route)
{{ $route->routename }}

@php // Extract first word and append SHL $labName = $route->lab_name; $firstWord = explode(' ', trim($labName))[0]; $formattedLabName = $firstWord . ' SHL'; @endphp {{ $formattedLabName }}

{{ $route->transaction_count }}

Total Amount

RS. {{ number_format($route->total_amount, 2) }}

Performance

{{ number_format($todayTotalTransaction > 0 ? ($route->total_amount / $todayTotalTransaction * 100) : 0, 1) }}%
@endforeach

Center Performance

@foreach($centersWithTransactions as $center)
{{ $center->centername }}

{{ $center->routename }}

{{ $center->transaction_count }}

Total Amount

RS. {{ number_format($center->total_amount, 2) }}

Performance

{{ number_format($todayTotalTransaction > 0 ? ($center->total_amount / $todayTotalTransaction * 100) : 0, 1) }}%
@endforeach

Relationship Officers Performance

@foreach($roWithTransactions as $ro)
{{ $ro->ro_name }}

@php // Extract first word and append SHL - FIXED: using $ro->lab_name instead of $route->lab_name $labName = $ro->lab_name; $firstWord = explode(' ', trim($labName))[0]; $formattedLabName = $firstWord . ' SHL'; @endphp {{ $formattedLabName }}

{{ $ro->transaction_count }}

Total Amount

RS. {{ number_format($ro->total_amount, 2) }}

Performance

{{ number_format($todayTotalTransaction > 0 ? ($ro->total_amount / $todayTotalTransaction * 100) : 0, 1) }}%
@endforeach