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

Update details for {{ $staff->name }} ({{ $company->name }})

Staff Information
@if ($errors->any()) @endif
@csrf @method('PUT')
@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
To change this staff member's password, ask them to use the password reset option on the login page.
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
@endsection