@extends('layouts.app') @section('content')

Edit Service Assignment

Customer: {{ $customer->CustomerName }} | Service: {{ $service->ServiceName }}

Back to Customer
Service Assignment Details
@csrf @method('PUT')
{{ config('app.currency', 'Ksh.') }}
@error('quantity')
{{ $message }}
@enderror
@if($pivot->IsActive) Active @else Inactive @endif
Cancel
Current Assignment
Customer
{{ $customer->CustomerName }}
{{ $customer->AccountNo }}
Service
{{ $service->ServiceName }}
Current Price
{{ number_format($pivot->Price, 2) }} {{ config('app.currency', 'Ksh.') }}
Status
@if($pivot->IsActive) Active @else Inactive @endif
@if($pivot->StartDate)
Service Period
{{ is_string($pivot->StartDate) ? \Carbon\Carbon::parse($pivot->StartDate)->format('M d, Y') : $pivot->StartDate->format('M d, Y') }} @if($pivot->EndDate) - {{ is_string($pivot->EndDate) ? \Carbon\Carbon::parse($pivot->EndDate)->format('M d, Y') : $pivot->EndDate->format('M d, Y') }} @else - Ongoing @endif
@endif
Help & Tips
  • Only the quantity can be modified for existing service assignments
  • Quantity changes will affect future bill calculations
  • Contact administrator if you need to modify other service details
  • Use the delete option to remove a service assignment completely
@endsection