@extends('layouts.app') @section('title', 'Lead Statuses') @section('content')

Lead Statuses

General statuses apply to all clients. Add client-specific statuses to extend or override names used in imports and dropdowns for that client only.

Drag rows to change display order

@if(auth()->user()->isSuperAdmin() && $clients->isNotEmpty())
@if(request('per_page')) @endif
@endif
@csrf @if(auth()->user()->isSuperAdmin())
@endif
@forelse($statuses as $status) @php $canEdit = auth()->user()->isSuperAdmin() || (!$status->isGeneral() && (int) $status->client_id === (int) auth()->user()->client_id); @endphp @if($canEdit) @endif @empty @endforelse
Name Scope Status Action
@if($canEdit) @endif {{ $status->name }} @if($status->isGeneral()) General @else {{ $status->client?->company_name ?? 'Client #'.$status->client_id }} @endif @if($canEdit)
@csrf
@else {!! status_badge($status->is_active ? 'active' : 'inactive') !!} @endif
@if($canEdit) @else Read-only @endif
@csrf @method('PUT') @if(auth()->user()->isSuperAdmin())
@else
@endif
No statuses found
@include('admin.partials.list-pagination', ['paginator' => $statuses, 'perPage' => $perPage, 'perPageOptions' => $perPageOptions])
@endsection @push('scripts') @endpush