@extends('crm.layouts.app') @section('title', 'Artist Dashboard') @section('content')

My Earnings

{{ Auth::user()->name }}

This Month Earnings

${{ number_format($currentMonthEarnings, 2) }}

This Month Tips

${{ number_format($currentMonthTips, 2) }}

Appointments

{{ $currentMonthAppointments }}

@if($payrollSetting)

Pay Structure

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

Recent Payouts

@if($recentPayouts->count() > 0)
@foreach($recentPayouts as $payout)
{{ $payout->pay_period_start->format('M j') }} - {{ $payout->pay_period_end->format('M j, Y') }}
Earnings: ${{ number_format($payout->total_earnings, 2) }} | Tips: ${{ number_format($payout->total_tips, 2) }}
${{ number_format($payout->total_payout, 2) }}
{{ ucfirst($payout->status) }}
@endforeach
@else

No payouts available yet

@endif
@endsection