Организации

@can('create', App\Models\Organization::class) @endcan
@if(session('success')) @endif @if(session('error')) @endif
@forelse($organizations as $org) @empty @endforelse
ID Название INN/KPP Email Пользователей Групп Статус Действия
{{ $org->id }} {{ $org->name }} @if($org->inn) {{ $org->inn }} @if($org->kpp)
{{ $org->kpp }}@endif @else @endif
{{ $org->email ?? '—' }} {{ $org->users_count }} {{ $org->groups_count }} @if($org->is_active) Активна @else Не активна @endif
@can('update', $org) @endcan @can('delete', $org)
@csrf @method('DELETE')
@endcan

Организаций пока нет

@if($organizations->hasPages())
{{ $organizations->links() }}
@endif