@extends('layouts.business') @section('title', 'Business Teams') @section('content')
Total Teams

{{ $teams->total() }}

Active Teams

{{ $teams->where('status', 'active')->count() }}

Total Members

{{ $teams->sum('member_count') }}

@forelse($teams as $team) @empty @endforelse
Team Name Description Members Status Created Actions
{{ $team->name }} {{ Str::limit($team->description, 50) }} {{ $team->member_count }} {{ ucfirst($team->status) }} {{ $team->created_at->format('M d, Y') }} @if($team->status !== 'archived')
@csrf @method('DELETE')
@endif
No teams yet. Create one
Showing {{ $teams->firstItem() ?? 0 }} to {{ $teams->lastItem() ?? 0 }} of {{ $teams->total() }} teams
{{ $teams->links() }}
@endsection