Deployment Payout Report

Deployment #{{ $schedule->duty_number }} | Site: {{ $schedule->site->name }}

Deployment Timing Metrics
Scheduled Start {{ $schedule->from_datetime->format('Y-m-d H:i') }}
Actual Check-In {{ $pivot->actual_start_at ? \Carbon\Carbon::parse($pivot->actual_start_at)->format('Y-m-d H:i') : 'N/A' }}
Scheduled End {{ $schedule->to_datetime->format('Y-m-d H:i') }}
Actual Extraction {{ $pivot->actual_end_at ? \Carbon\Carbon::parse($pivot->actual_end_at)->format('Y-m-d H:i') : 'N/A' }}
Billable Duration Calculation
Payable Start Time {{ $payoutData['payout_start'] ? $payoutData['payout_start']->format('Y-m-d H:i') : 'N/A' }}
* Adjusted based on early/late check-in policy.
Payable End Time {{ $payoutData['payout_end'] ? $payoutData['payout_end']->format('Y-m-d H:i') : 'N/A' }}
* Adjusted based on early extraction policy.
Total Billable Hours {{ $payoutData['hours'] }} Hours
Financial Compensation Summary
@php $wage_types_raw = json_decode($pivot->wage_types, true); if (!is_array($wage_types_raw)) { $wage_types_raw = json_decode($wage_types_raw, true) ?? []; } $wage_types = array_filter(array_map(fn($v) => is_array($v) ? json_encode($v) : (string) $v, $wage_types_raw)); @endphp @if(count($wage_types) > 0) @endif
Job Wage Rate (Hourly) ${{ number_format($payoutData['wage_rate'], 2) }}
Job Gas Allowance ${{ number_format($payoutData['gas_rate'], 2) }}
Allocated Wage Components {{ implode(', ', $wage_types) }}

Total Job Remuneration

${{ number_format($payoutData['payout'], 2) }}