@extends('layouts.dashboard') @section('title', $pageTitle ?? 'Accounts') @section('page_header')
Total {{ $pageTitle ?? 'Accounts' }} {{ $totalAccounts }}
Total
Active {{ $pageTitle ?? 'Accounts' }} {{ $activeAccounts }}
Active
Inactive {{ $pageTitle ?? 'Accounts' }} {{ $inactiveAccounts }}
Inactive
@endsection @section('page_content') @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
@if ($accounts->isEmpty())
No accounts found. Create one to get started.
@else
@foreach ($accounts as $key => $account) @endforeach
S.No Name Company Status Actions
{{ ++$key }} {{ $account->name }} {{ $account->company?->name ?? '—' }}
@csrf
is_active)> {{ $account->is_active ? 'Active' : 'Inactive' }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush