@extends('crm.layouts.app') @section('title', 'Payroll Management') @section('content')

Payroll Management

Manage artist compensation and payouts

Settings
@if(session('success'))

{{ session('success') }}

@endif @if($artists->count() > 0)
@foreach($artists as $artist)

{{ $artist->name }}

{{ $artist->payrollSetting && $artist->payrollSetting->active ? 'Active' : 'Inactive' }}
@if($artist->payrollSetting)
Pay Type: {{ ucfirst(str_replace('_', ' ', $artist->payrollSetting->pay_type)) }}
Pay Rate: @if($artist->payrollSetting->pay_type === 'commission') {{ $artist->payrollSetting->pay_rate }}% @else ${{ number_format($artist->payrollSetting->pay_rate, 2) }} @endif
Tip Share: {{ $artist->payrollSetting->tip_percentage }}%
@else

No payroll settings configured

@endif

Recent Payouts

@if($artist->artistPayouts->count() > 0)
@foreach($artist->artistPayouts as $payout)
{{ $payout->pay_period_start->format('M j') }} - {{ $payout->pay_period_end->format('M j') }} {{ ucfirst($payout->status) }}
${{ number_format($payout->total_payout, 2) }}
@endforeach
@else

No payouts yet

@endif
@endforeach
@else

No employees yet

Get started by adding employees to your team and configuring their payroll settings.

@endif
@endsection