@if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif

{{ $tools->total() }}

{{ __('Total Tools') }}

{{ $tools->where('method', 'GET')->count() }}

{{ __('GET Methods') }}

{{ $tools->where('method', 'POST')->count() }}

{{ __('POST Methods') }}

{{ $devices->count() }}

{{ __('Devices') }}
@if(request('search')) @endif
@forelse ($tools as $tool) @empty @endforelse
{{ __('ID') }} {{ __('Name') }} {{ __('Description') }} {{ __('Method') }} {{ __('URL') }} {{ __('Device') }} {{ __('Created') }} {{ __('Actions') }}
#{{ $tool->id }}
{{ $tool->name }}
{{ Str::limit($tool->description, 40) }} {{ $tool->method }} {{ Str::limit($tool->url, 30) }} @if($tool->device) {{ $tool->device->body }} @else {{ __('N/A') }} @endif {{ $tool->created_at->format('d M Y') }}
@csrf @method('DELETE')

{{ __('No tools found. Create your first tool to get started!') }}