@extends('layouts.app-sidebar') @section('content')
{{-- Page Header --}} Add Command {{-- Info Card --}} Commands trigger when viewers type !commandname in chat. Use variables like {user} to personalize responses. {{-- Commands List --}} @if($commands->count() > 0) {{-- Mobile Card View --}}
@foreach($commands as $command) {{-- Header Row --}}
!{{ $command->name }} @if($command->is_enabled) On @else Off @endif
@csrf @method('DELETE')
{{-- Response --}}

{{ $command->response }}

{{-- Stats Row --}}
{{ $command->cooldown_sec }}s cooldown
{{ ucfirst($command->required_role) }}
@endforeach
{{-- Desktop Table View --}} @if($commands->hasPages())
{{ $commands->links() }}
@endif @else {{-- Empty State --}} @endif
@endsection