@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Branch wise Employee Manage')) @section('content')
{{ __('Branch wise Employee Manage') }}
@if($featureEnabled) {{ __('Feature is ON') }} @else {{ __('Feature is OFF in Website Settings') }} @endif

{{ __('When enabled, users with the Branch Manager role can perform actions allowed by their role permissions, but only for employees assigned to their branch.') }}

{{ __('HQ admins (user_type admin without Branch Manager role) always see all branches.') }}

{{ __('Branch Manager role') }}
@if($branchManagerRole)

{{ $branchManagerRole->name }} {{ __('Permissions: :count', ['count' => $branchManagerRole->permissions()->count()]) }}

@can('Role-edit') {{ __('Edit role permissions') }} @endcan @else

{{ __('Role not created yet. Enable the feature in Website Settings to auto-create the Branch Manager role.') }}

@endif
{{ __('Setup guide') }}
  1. @can('Branch-list') {{ __('Create or manage branches') }} @else {{ __('Create or manage branches (Branch-list permission required)') }} @endcan
  2. {{ __('Create an admin user and assign the Branch Manager role') }}
  3. {{ __('Set the user Warehouse/Branch (warehouse_id) — required for branch scoping') }}
  4. {{ __('Customize Branch Manager permissions from Roles if needed') }}
{{ __('Back to Website Settings') }} @can('User-create') {{ __('Add employee / admin user') }} @endcan
@endsection