@extends('layouts.admin') @section('title', $pageTitle) @section('content')

{{ trans('global.profile') }}

@if(Auth::guard('admin')->user()->name == 'Admin')
@csrf
@if($errors->has('name'))

{{ $errors->first('name') }}

@endif
@if($errors->has('email'))

{{ $errors->first('email') }}

@endif
@if($errors->has('password'))

{{ $errors->first('password') }}

@endif
@endif @if(Auth::guard('admin')->user()->name == 'User')
@csrf
@if($errors->has('name'))

{{ $errors->first('name') }}

@endif
@if($errors->has('email'))

{{ $errors->first('email') }}

@endif
@if($errors->has('password'))

{{ $errors->first('password') }}

@endif
@endif
@endsection @section('scripts') @endsection