@extends('admin.layouts.app') @section('content')
Edit Agent
@csrf @method('put')
@if($errors->has('name'))
{{ $errors->first('name') }}
@endif
@if($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if($errors->has('phone'))
{{ $errors->first('phone') }}
@endif
{{--
whatsapp)}}'> @if($errors->has('whatsapp'))
{{ $errors->first('whatsapp') }}
@endif
--}}
speaks)}}'> @if($errors->has('speaks'))
{{ $errors->first('speaks') }}
@endif
@if($errors->has('address'))
{{ $errors->first('address') }}
@endif
{{--
@if($errors->has('description'))
{{ $errors->first('description') }}
@endif
--}}
@php //$agent_image_url = $agent->getFirstMediaUrl('agent-profile-image'); if($agent){ if(count($agent->getMedia('agent-profile-image')) > 0){ $agent_image_url = $agent->getMedia('agent-profile-image')->last()->getUrl(); }else{ $agent_image_url = ''; } }else{ $agent_image_url = ''; } @endphp
@if($errors->has('image'))
{{ $errors->first('image') }}
@endif {{-- [.png, .jpg, .jpeg files only, Max size: 2MB] --}}

@if($errors->has('status'))
{{ $errors->first('status') }}
@endif
Back
@endsection @push('scripts_footer') @include('admin.misc.scripts.dropzone_agent_image') @include('admin.agents.edit.script') @endpush