@extends('layouts.admin') @section('title') Edit User @endsection @section('page_title') Edit User @endsection @section('content') @push('page_style') @endpush
@csrf @method('put')
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@if (auth()->user()->isAdmin())
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
@else @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif

@if ($errors->has('phone_number')) {{ $errors->first('phone_number') }} @elseif($errors->has('phone_code')) {{ $errors->first('phone_code') }} @elseif($errors->has('iso_code')) {{ $errors->first('iso_code') }} @endif
@push('page_script') @endpush @endsection