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

Edit Agent

Update agent information and settings

Back to Agents
Agent Code
{{ $agent->agent_code }}
Status
{{ $agent->is_active ? 'Active' : 'Inactive' }}
Office
{{ $agent->office->name ?? 'N/A' }}
Vehicle
{{ ucfirst($agent->vehicle_type) }}
Agent Information
@csrf @method('PUT')
{{ $agent->user->name }} ({{ $agent->user->email }})
User information cannot be changed
{{ $agent->office->name ?? 'N/A' }} @if($agent->office) - {{ $agent->office->district->name ?? '' }}
{{ $agent->office->address ?? '' }} @endif
Office assignment cannot be changed here
{{ $agent->agent_code }}
Agent code cannot be modified
@error('phone')
{{ $message }}
@enderror
@error('vehicle_type')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
@error('license_number')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
Cancel
Quick Actions
@endsection @push('styles') @endpush @push('scripts') @endpush