Calls for {{ $selectedDate }}

{{$todayCallsCount}}
@php $todayCallsDirection = $todayCallsPercentage['direction'] ?? 0; $todayCallsTone = $todayCallsDirection > 0 ? 'text-success-main' : ($todayCallsDirection < 0 ? 'text-danger-main' : 'text-secondary'); $todayCallsIcon = $todayCallsDirection > 0 ? 'bxs:up-arrow' : ($todayCallsDirection < 0 ? 'bxs:down-arrow' : 'mdi:minus'); @endphp

{{ abs($todayCallsPercentage['value'] ?? 0) }}% vs previous day

@php $defaultIcons = [ 'carbon:pending', 'mdi:account-check', 'mdi:account-remove', 'mdi:calendar-clock', 'mdi:star-outline', 'mdi:phone', 'mdi:chart-line', ]; @endphp
@foreach($workflowCounts as $workflow) @php $icon = $workflow['icon'] ?: $defaultIcons[array_rand($defaultIcons)]; $direction = $workflow['percentage']['direction'] ?? 0; $tone = $direction > 0 ? 'text-success-main' : ($direction < 0 ? 'text-danger-main' : 'text-secondary'); $directionIcon = $direction > 0 ? 'bxs:up-arrow' : ($direction < 0 ? 'bxs:down-arrow' : 'mdi:minus'); @endphp

{{ $workflow['label'] }}

{{ $workflow['count'] }}

{{ abs($workflow['percentage']['value'] ?? 0) }}% vs previous day

@endforeach