{{ __('employees.schedule_'.$view) }}

{{ $periodLabel }}

@foreach (['day', 'week', 'month'] as $tab) {{ __('employees.view_'.$tab) }} @endforeach
@if ($view === 'month') @foreach ($week->take(7) as $weekday)
{{ $weekday['day'] }}
@endforeach @endif @foreach ($week as $day)
@if ($view === 'month')
{{ (int) $day['date'] }} @adminCan('visits.schedule')@endadminCan
@foreach ($day['slots']->take(2) as $slot) {{ $slot['time'] }} {{ $slot['client'] }} @endforeach
@if ($day['slots']->isNotEmpty()) {{ __('employees.month_visits', ['count' => $day['slots']->count()]) }} @endif @else
{{ $day['day'] }} {{ $day['date'] }}
@forelse ($day['slots'] as $slot) @php $tone = match ($slot['tone']) { 'mint' => 'border-l-[#17B26A] bg-[#F3FDF7]', 'amber' => 'border-l-[#F58229] bg-[#FFF7F1]', default => 'border-l-[#2E90FA] bg-[#F2F8FF]', }; @endphp {{ $slot['time'] }} {{ $slot['client'] }} {{ $slot['address'] }} @empty

{{ __('crm.staff.no_visits') }}

@endforelse @adminCan('visits.schedule')@endadminCan
@endif
@endforeach
{{ __('crm.services.subscription') }} {{ __('app.menu.services') }} {{ __('crm.services.one_off') }}