{{ __('Services List') }}
{{ session('success') }}
@endif
@if ($errors->any())
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
TOTAL SERVICES
{{ $services->count() }}
PUBLISHED
{{ $services->where('active', 1)->count() }}
DRAFT
{{ $services->where('active', 0)->count() }}
PRIVATE
{{ $services->where('active', 2)->count() }}
Advanced Filters
Services Table
entries
@if($services->count() > 0)
@else
@endif
| # | Cover Image | Title | Description | Status | Created | Actions |
|---|---|---|---|---|---|---|
| {{ $index + 1 }} |
@if($service->cover_image)
|
{{ $service->title }}{{ $service->permalink }} |
{{ Str::limit($service->description, 100) }}
|
@php $statusClass = [ 0 => 'bg-warning-subtle text-warning', 1 => 'bg-success-subtle text-success', 2 => 'bg-secondary-subtle text-secondary', ]; $statusText = [ 0 => 'Draft', 1 => 'Published', 2 => 'Private', ]; @endphp {{ $statusText[$service->active] ?? 'Unknown' }} |
{{ $service->created_at->format('M d, Y') }}
{{ $service->created_at->format('h:i A') }} |
|
Showing 1 to {{ $services->count() }} of {{ $services->count() }} entries