@extends('layouts.app') @section('content')
Service Plans
@can('create plans') Add Plan @endcan
count() > 0) id="service-plans-table" @endif class="table"> @forelse($servicePlans as $plan) @empty @endforelse
Service Name Price Max Slots Status Action
{{ $plan->service->name ?? 'N/A' }} {{ $plan->name }} ${{ number_format($plan->price, 2) }} {{ $plan->max_slots }} {{ $plan->is_active ? 'Active' : 'Pending' }} @canany(['update plans', 'delete plans'])
@can('update plans') Edit @endcan @can('delete plans')
@csrf @method('DELETE')
@endcan
@else - @endcanany
No service plans found.
{{ $servicePlans->links() }}
@endsection @if($servicePlans->count() > 0) @push('script') @endpush @endif