@extends('layouts.app') @section('title', 'Edit District Pricing') @section('content')

Edit District Pricing

Update delivery rates for {{ $pricing->pickupDistrict->name }} → {{ $pricing->dropDistrict->name }}

Back to Pricing List
Pricing Configuration
@csrf @method('PUT')
Current Route: {{ $pricing->pickupDistrict->name }} ({{ $pricing->pickupDistrict->province }}) → {{ $pricing->dropDistrict->name }} ({{ $pricing->dropDistrict->province }})
Service Type: {{ ucfirst($pricing->service_type) }}
Route Configuration
@error('pickup_district_id')
{{ $message }}
@enderror
@error('drop_district_id')
{{ $message }}
@enderror
Service Configuration
@error('service_type')
{{ $message }}
@enderror
@error('estimated_days')
{{ $message }}
@enderror
Pricing Details
Fixed charge regardless of weight (Disabled)
@error('base_rate')
{{ $message }}
@enderror
Additional charge per kilogram
@error('per_kg_rate')
{{ $message }}
@enderror
Minimum amount to charge for this route (Disabled)
@error('minimum_charge')
{{ $message }}
@enderror
Optional maximum charge cap (Disabled)
@error('maximum_charge')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
@error('notes')
{{ $message }}
@enderror

Cancel
Current Pricing
{{ $pricing->pickupDistrict->name }}
{{ $pricing->dropDistrict->name }}
{{ ucfirst($pricing->service_type) }} {{ $pricing->estimated_days }} days {{ $pricing->is_active ? 'Active' : 'Inactive' }}
Current Rates
Base Rate: Rs. {{ number_format($pricing->base_rate, 2) }}
Per KG: Rs. {{ number_format($pricing->per_kg_rate, 2) }}
Minimum: Rs. {{ number_format($pricing->minimum_charge, 2) }}
@if($pricing->maximum_charge)
Maximum: Rs. {{ number_format($pricing->maximum_charge, 2) }}
@endif
Updated Preview
Test Calculation
Weight (KG)
Total Cost: Rs. 0.00
Base Rate: Rs. 0.00
Weight Charge: Rs. 0.00
Final Amount: Rs. 0.00
Pricing History
Created

{{ $pricing->created_at->format('M d, Y H:i') }}

@if($pricing->updated_at != $pricing->created_at)
Last Updated

{{ $pricing->updated_at->format('M d, Y H:i') }}

@endif
@endsection