@extends('layouts.admin') @section('title', $mode === 'create' ? 'Add Admin' : 'Edit Admin — '.$admin->name) @push('styles') @endpush @section('content')
Back to admin team

{{ $mode === 'create' ? 'Add admin' : 'Edit admin' }}

@if($mode === 'create') Create a new Tenseal staff account. The admin receives a welcome email with a temporary password. @else Change this admin's role, contact info, or activation. @endif

@csrf @if($mode === 'edit') @method('PUT') @endif
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@foreach($roles as $key => $meta) @endforeach @error('role')
{{ $message }}
@enderror
@if($mode === 'create')
Leave blank and we'll generate a strong one. The admin gets it in their invite email.
@endif
Cancel
@endsection