@extends('layouts/contentNavbarLayout') @section('title', ' Agent - Edit Agent') @section('content') @php $name = $user->role->name === 'field_agent' ? 'Agent' : 'Customer'; @endphp

@if (Auth::user()->role_id === 5) Agents / @else Agents / @endif Edit

Edit
@php $route = Auth::user()->role_id === 5 ? route('extnal.agent.customer.update') : route('agent.update'); @endphp
@csrf @method('PUT')
@error('phone')
{{ $message }}
@enderror
Allowed file types: .jpg, .jpeg, .png. Max file size: 2MB.
@error('photo')
{{ $message }}
@enderror
@endsection @section('page-script') @endsection