@extends('layouts.admin') @section('content') @php $readonly=''; @endphp @if($action=='View') @php $readonly='readonly'; @endphp @endif

{{ __($title) }}

@if($action == 'Edit')
{{ method_field('PUT') }} @else @endif @csrf
@if(old('first_name')) @php $first_name = old('first_name'); @endphp @elseif(isset($record->first_name) && $record->first_name != '') @php $first_name = $record->first_name; @endphp @else @php $first_name = ''; @endphp @endif @error('first_name') {{ $message }} @enderror
@if(old('last_name')) @php $last_name = old('last_name'); @endphp @elseif(isset($record->last_name) && $record->last_name != '') @php $last_name = $record->last_name; @endphp @else @php $last_name = ''; @endphp @endif @error('last_name') {{ $message }} @enderror
@if(old('email')) @php $email = old('email'); @endphp @elseif(isset($record->email) && $record->email != '') @php $email = $record->email; @endphp @else @php $email = ''; @endphp @endif @error('email') {{ $message }} @enderror
@if($action=='Create')
@if(old('password')) @php $password = old('password'); @endphp @elseif(isset($record->password) && $record->password != '') @php $password = $record->password; @endphp @else @php $password = ''; @endphp @endif @error('password') {{ $message }} @enderror
@endif
@if(old('email')) @php $email = old('email'); @endphp @elseif(isset($record->email) && $record->email != '') @php $email = $record->email; @endphp @else @php $email = ''; @endphp @endif
@foreach($roles as $role)