@extends('admin.layouts.app') @php $mode = "Add"; $action = route('admin.add'); if(!empty($id)){ $mode = "Edit"; $action = route('admin.edit',encrypt($id)); $img_url = get_url("admin-avatar/{$admin->id}/{$admin->profile_photo}"); } @endphp @section('content')

Administrators

{{ $mode }} Admin

@include('admin.includes.status')
{{ csrf_field() }}
first_name : old('first_name') }}">
@if ($errors->has('first_name')){{ $errors->first('first_name') }}@endif
last_name : old('last_name') }}">
@if ($errors->has('last_name')){{ $errors->first('last_name') }}@endif
email : old('email') }}">
@if ($errors->has('email')){{ $errors->first('email') }}@endif
@if ($errors->has('password')){{ $errors->first('password') }}@endif
@if ($errors->has('timezone')){{ $errors->first('timezone') }}@endif
@if($admin_role != 'agency-admin') @if(!empty($roles))
@if ($errors->has('role_id')){{ $errors->first('role_id') }}@endif
@endif @if(!empty($agencies))
@if ($errors->has('agency_id')){{ $errors->first('agency_id') }}@endif
@endif @endif
@if ($errors->has('status')){{ $errors->first('status') }}@endif
@if($mode == "Add")
@if ($errors->has('email_verified')){{ $errors->first('email_verified') }}@endif
@endif
@if(!empty($roles_json)) @endif @endsection