@extends('admin.layouts.app') @section('title', 'Services') @section('content')
{{-- Header --}}

Services

Add Service
{{-- Flash --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Stats --}}
{{ $stats['total'] }}
Total Services
{{ $stats['active'] }}
Active
{{ $stats['inactive'] }}
Inactive
Rs {{ number_format($stats['avg_price'], 0) }}
Avg. Price
{{-- Filters --}}
@if(request()->hasAny(['search','category','status'])) Clear @endif
{{-- Table --}}
All Services {{ $services->total() }} result{{ $services->total() !== 1 ? 's' : '' }} Showing {{ $services->firstItem() ?? 0 }}โ€“{{ $services->lastItem() ?? 0 }} of {{ $services->total() }}
@forelse($services as $service) @empty @endforelse
Service Name Category Price Est. Time Status Sort Actions
{{ $service->name }}
@if($service->description)
{{ Str::limit($service->description, 55) }}
@endif @if($service->includes)
{{ Str::limit($service->includes, 50) }}
@endif
@if($service->serviceCategory) {{ $service->serviceCategory->icon }} {{ $service->serviceCategory->name }} @else โ€” @endif Rs {{ number_format($service->base_price, 0) }} @if($service->estimated_time) {{ $service->estimated_time }} min @else โ€” @endif @if($service->is_active) Active @else Inactive @endif {{ $service->sort_order }}
@csrf @method('DELETE')
No services found
@if(request()->hasAny(['search','category','status']))

Try adjusting your filters.

Clear Filters @else

Start by adding your first service.

Add First Service @endif
@if($services->hasPages())
Page {{ $services->currentPage() }} of {{ $services->lastPage() }}  ยท  {{ $services->total() }} total {{ $services->links('vendor.pagination.bootstrap-5') }}
@endif
@endsection