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

Assign Services to {{ $customer->CustomerName }}

Add new services to customer account with pricing and quantity details

Back to Services

Assign New Service

@csrf
Please select a service.
{{ config('app.currency_symbol', 'Ksh. ') }}
units
Please enter a valid quantity (minimum 1).
{{ config('app.currency_symbol', 'Ksh. ') }}
Please select a start date.

Current Services

@if($customer->propServices->count() > 0)
@foreach($customer->propServices as $service) @endforeach
Service Unit Price Quantity Duration Notes Actions
{{ $service->ServiceName }}
@if($service->pivot->IsActive) Active @else Inactive @endif
{{ number_format($service->pivot->Price, 2) }} {{ config('app.currency', 'Ksh.') }} {{ $service->pivot->Quantity ?? 1 }} {{ \Carbon\Carbon::parse($service->pivot->StartDate)->format('M d, Y') }} @if($service->pivot->EndDate) - {{ \Carbon\Carbon::parse($service->pivot->EndDate)->format('M d, Y') }} @else - No end date @endif @if($service->pivot->Notes) {{ $service->pivot->Notes }} @else - @endif
@csrf @method('DELETE')
@else
No services assigned yet

Get started by assigning a new service to this customer.

@endif
@push('scripts') @endpush @endsection