@extends('layouts.business') @section('content')

Invite Staff Member

Send an invitation to a new team member to join your business

@php $business = auth()->user()->businesses()->first(); $subscription = $business ? $business->activeSubscription()->with('plan')->first() : null; $maxStaff = $subscription ? $subscription->plan->max_staff : 0; $currentStaff = $business ? $business->staff()->where('status', 'active')->count() : 0; $canAddMore = $currentStaff < $maxStaff; @endphp
@if(!$subscription) @elseif(!$canAddMore) @endif
@if($canAddMore)
@csrf
An invitation will be sent to this email address @error('email')
{{ $message }}
@enderror
Manager: Can manage venues, offers, staff, and view analytics
Staff: Can process redemptions and view limited features
@error('role')
{{ $message }}
@enderror
Assign this staff member to a specific team @error('team_id')
{{ $message }}
@enderror

Select which features this staff member can access:

@foreach($importantPermissions as $permission)
id, old('permissions', [])) ? 'checked' : '' }}>
@endforeach
@error('permissions')
{{ $message }}
@enderror
Cancel
@else

Staff Limit Reached

Your current plan allows {{ $maxStaff }} staff members.

To add more staff, please upgrade your subscription plan.

Upgrade Plan
@endif
@if($subscription)
Plan: {{ $subscription->plan->name }}
Staff Members: {{ $currentStaff }}/{{ $maxStaff }}
@if($canAddMore)

You can add {{ $maxStaff - $currentStaff }} more staff member(s)

@else

Limit reached - upgrade to add more

@endif
@endif
How it works
  1. Enter the staff member's email address
  2. Select their role and permissions
  3. Click "Send Invitation"
  4. They'll receive an email with a link to create their account
  5. Once they create their account, they can start working immediately
Important

Invitations expire after 7 days. If the staff member doesn't accept within this period, you'll need to send a new invitation.

@endsection