@php use App\Support\Money; $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $monthLabel = \Illuminate\Support\Carbon::createFromFormat('Y-m', $month)->format('F Y'); @endphp
@include('tenant.coaching._errors')

Figures update live from the class log until you save a payout.

{{ $monthLabel }}

@forelse($rows as $row) @php $teacher = $row['teacher']; $calc = $row['calc']; $payout = $row['payout']; $missingRule = collect($calc['rows'])->contains('has_rule', false); @endphp @empty @endforelse
InstructorClassesHoursCalculatedPayoutStatus
@if($missingRule)

Some classes have no pay rule

@endif
{{ $calc['classes'] }} {{ round($calc['minutes'] / 60, 1) }} {{ Money::format($calc['gross_cents'], $currency) }} {{ $payout ? Money::format($payout->net_cents, $currency) : '—' }} @if($payout?->adjustment_cents)

{{ $payout->adjustment_cents > 0 ? '+' : '' }}{{ Money::format($payout->adjustment_cents, $currency) }} adj.

@endif
@if($payout?->status === 'paid')Paid {{ $payout->paid_at?->format('d M') }} @elseif($payout)Draft @elseNot saved@endif @if($payout?->status !== 'paid') @endif @if($payout && $payout->status === 'draft')
@csrf
@endif
@csrf

Calculated: {{ Money::format($calc['gross_cents'], $currency) }}. Add a bonus (positive) or deduction (negative) if needed.

@forelse($calc['rows'] as $line) @empty @endforelse
BatchRuleClassesCollectedAmount
{{ $line['label'] }} {{ $line['rule'] }} {{ $line['classes'] }} {{ $line['collected_cents'] !== null ? Money::format($line['collected_cents'], $currency) : '—' }} {{ Money::format($line['amount_cents'], $currency) }}
No classes this month.
No classes logged and no pay rules yet. Add a pay rule to get started.

Pay rules

@forelse($rules->flatten() as $rule) @empty @endforelse
InstructorApplies toRule
{{ $rule->teacher?->first_name }} {{ $rule->teacher?->last_name }} {{ $rule->batch ? $rule->batch->label() : 'All batches (default)' }} {{ $rule->describe($currency) }}
@csrf @method('DELETE')
No pay rules yet.
@csrf

Saving a rule for the same instructor + batch replaces the existing one.