Updated just now
@php // Extract first word and append SHL $labName = $route->lab_name; $firstWord = explode(' ', trim($labName))[0]; $formattedLabName = $firstWord . ' SHL'; @endphp {{ $formattedLabName }}
Total Amount
Performance
{{ number_format($todayTotalTransaction > 0 ? ($route->total_amount / $todayTotalTransaction * 100) : 0, 1) }}%{{ $center->routename }}
Total Amount
Performance
{{ number_format($todayTotalTransaction > 0 ? ($center->total_amount / $todayTotalTransaction * 100) : 0, 1) }}%@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 }}
Total Amount
Performance
{{ number_format($todayTotalTransaction > 0 ? ($ro->total_amount / $todayTotalTransaction * 100) : 0, 1) }}%