@switch($selectedPeriod) @case('today') @lang('modules.dashboard.todayEarnings') @break @case('last7days') @lang('app.last7Days') @lang('modules.dashboard.earnings') @break @case('last30days') @lang('app.last30Days') @lang('modules.dashboard.earnings') @break @case('alltime') @lang('app.allTime') @lang('modules.dashboard.earnings') @break @default @lang('modules.dashboard.todayEarnings') @endswitch

{{ currency_format($orderCount, restaurant()->currency_id) }}

($percentChange > 0), 'text-red-600 dark:text-red-400' => ($percentChange < 0), 'text-muted-foreground' => ($percentChange == 0) ])> @if ($percentChange > 0) @elseif ($percentChange < 0) @else @endif {{ abs(round($percentChange, 1)) }}% @switch($selectedPeriod) @case('today') @lang('modules.dashboard.sinceYesterday') @break @case('last7days') @lang('modules.dashboard.sincePreviousPeriod') @break @case('last30days') @lang('modules.dashboard.sincePreviousPeriod') @break @case('alltime') @lang('modules.dashboard.sincePreviousPeriod') @break @default @lang('modules.dashboard.sinceYesterday') @endswitch