@extends('layouts.admin') @section('title','Кабінети') @section('page_title','Кабінети') @push('head') @endpush @section('page_actions') Створити кабінет @endsection @section('content') @php /** @var \Illuminate\Support\Collection|\Illuminate\Database\Eloquent\Collection $cabinets */ $totalCabinets = $cabinets->count(); $withTeamleads = $cabinets->filter(fn($cab) => $cab->teamLeads && $cab->teamLeads->count())->count(); $withDay = $cabinets->whereNotNull('day_operator')->count(); $withEven = $cabinets->whereNotNull('evening_operator')->count(); $withNight = $cabinets->whereNotNull('night_operator')->count(); @endphp {{-- ШАПКА / SUMMARY --}}
Тут можна подивитись, хто веде кабінет і які оператори стоять на денній, вечірній та нічній зміні.
| Назва | Тімлід | Денна | Вечірня | Нічна | Дії |
|---|---|---|---|---|---|
|
{{ $cab->name }}
@if(!empty($cab->slug))
{{ $cab->slug }}
@endif
|
{{-- Тімлід(и) --}}
@if($cab->teamLeads && $cab->teamLeads->count()) @foreach($cab->teamLeads as $lead) {{ $lead->name }} @endforeach @else — @endif | {{-- Денна --}}
@if($cab->day_operator)
{{ $cab->day_operator }}
@if($cab->day_tg_username)
{{ $cab->day_tg_username }}
@endif
@else
—
@endif
|
{{-- Вечірня --}}
@if($cab->evening_operator)
{{ $cab->evening_operator }}
@if($cab->evening_tg_username)
{{ $cab->evening_tg_username }}
@endif
@else
—
@endif
|
{{-- Нічна --}}
@if($cab->night_operator)
{{ $cab->night_operator }}
@if($cab->night_tg_username)
{{ $cab->night_tg_username }}
@endif
@else
—
@endif
|
{{-- Дії --}}
|
| Немає кабінетів. | |||||