@extends('layouts.app') @section('content')
Add Staff Member

Create a new staff member for {{ $company->name }}

Staff Information
@if ($errors->any()) @endif
@csrf
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('role_id')
{{ $message }}
@enderror Company Admin: Full access to company settings and staff management
Company Owner: Everything a company admin can do, plus voiding billings — and their 6-digit code authorizes every void in the company
Cashier: Can process payments and view billing
Meter Reader: Can record meter readings
{{-- The owner's code authorizes every void in the company, so an owner account is not usable without one. --}}
@error('password')
{{ $message }}
@enderror Password must contain uppercase, lowercase, numbers, and symbols
@error('password_confirmation')
{{ $message }}
@enderror
Cancel
Information
Staff Roles:
@foreach($roles as $role)
{{ ucfirst(str_replace('_', ' ', $role->name)) }}

@if($role->name === 'company_admin') Full access to manage the company, settings, and all staff @elseif($role->name === 'cashier') Process payments and manage billing documents @elseif($role->name === 'company_owner') Full company access, plus voiding billings (including paid ones). Their 6-digit code authorizes every void. @elseif($role->name === 'meter_reader') Record meter readings and consumption data @endif

@endforeach
Security: All passwords are securely hashed. Staff members must use their email and password to login.
@endsection