@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Bulk Create Employee Bonus')) @section('content')

{{ __('Bulk Create Employee Bonus') }}

{{ __('Create bonuses for multiple employees in a few simple steps.') }}

{{ __('Back to list') }}
@if (session()->has('error'))
{{ session('error') }}
@endif
{{-- Stepper --}}
@foreach([ 1 => __('Select Employees'), 2 => __('Basic Information'), 3 => __('Bonus Calculation'), 4 => __('Status & Review'), ] as $num => $label)
{{ $num }}
{{ $label }}
@endforeach
@csrf
{{-- STEP 1: Select Employees --}}
{{ __('Select Employees') }} 0 {{ __('selected') }}
{{ __('Available') }}
{{ count($staffOptions) }}
{{ __('Selected') }}
0
{{ __('Filter scope') }}
{{ request('branch_id') ? ($branches->firstWhere('id', (int) request('branch_id'))?->name ?? __('All branches')) : __('All branches') }} · {{ request('department_id') ? ($departments->firstWhere('id', (int) request('department_id'))?->name ?? __('All departments')) : __('All departments') }}
{{ __('All employees selected') }}
@forelse($staffOptions as $row) @empty @endforelse
{{ __('Employee') }} {{ __('Department') }} {{ __('Branch') }}
{{ $row['staff_name'] }} ID: {{ $row['user_id'] }} {{ $row['department_name'] }} {{ $row['branch_name'] }}
{{ __('No employees with salary setup match your filters.') }}

{{-- STEP 2: Basic Information --}}
{{ __('Basic Information') }}
{{-- STEP 3: Bonus Calculation --}}
{{ __('Bonus Calculation') }}
%
{{-- STEP 4: Status & Review --}}
{{ __('Status & Review') }}
{{ __('Summary') }}
{{ __('Employees') }}
{{ __('Bonus type') }}
{{ __('Calculation') }}
{{ __('Bonus date') }}
{{ __('Amount preview') }}
{{ __('Employee') }} {{ __('Department') }} {{ __('Salary base') }} {{ __('Bonus') }}
{{ __('Click Load preview to see amounts') }}
{{-- Navigation --}}
@endsection @section('script') @endsection