@extends('garage.layouts.app') @section('title', 'Services') @push('styles') @include('shared.garage-summary-ui-styles') @endpush @section('content')

Services

{{--

Rows: garage_services + garage_id · Category: garage_part_categories

--}}
Add service
{{ (int)($stats['total'] ?? 0) }}
Total Services
{{ (int)($stats['active'] ?? 0) }}
Active
{{ (int)($stats['inactive'] ?? 0) }}
Inactive
PKR {{ number_format((float)($stats['avg_price'] ?? 0), 0) }}
Avg. Price
@if(($search ?? '') || ($status ?? 'all') !== 'all') @endif
@forelse($services as $s) @empty @endforelse
Service Time Price Status Actions
{{ $s->name }}
@if($s->category)
{{ $s->category }}
@endif
@if($s->required_minutes !== null && $s->required_minutes !== '') {{ (int)$s->required_minutes }} min @else @endif PKR {{ number_format($s->price ?? 0, 2) }} @if($s->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
No services found.
@if($services->hasPages())
{{ $services->links() }}
@endif
@endsection @push('styles') @include('shared.parts-modal-styles') @endpush @push('scripts') @endpush