{{ __('Business Plan Details') }}

{{ $businessPlan->business->name }}

Business Plan #{{ $businessPlan->id }}

Back to Plans

Plan Information

Status: @if($businessPlan->active && (!$businessPlan->ends_at || $businessPlan->ends_at >= now())) Active @else Inactive @endif
Plan Quantity: {{ $businessPlan->plan_quantity }}
Price per Plan: ${{ number_format($businessPlan->price_per_plan / 100, 2) }}
Total Price: ${{ number_format($businessPlan->total_price / 100, 2) }}
Duration: {{ $businessPlan->duration_months }} month(s)
Start Date: {{ $businessPlan->starts_at ? $businessPlan->starts_at->format('M j, Y') : 'N/A' }}
End Date: {{ $businessPlan->ends_at ? $businessPlan->ends_at->format('M j, Y') : 'Ongoing' }}
Created: {{ $businessPlan->created_at->format('M j, Y') }}

Self-Payment Statistics

{{ $selfPaymentStats['total_self_payments'] }}
Total Self-Payments
{{ $selfPaymentStats['completed_self_payments'] }}
Completed
{{ $selfPaymentStats['pending_self_payments'] }}
Pending
{{ $selfPaymentStats['failed_self_payments'] }}
Failed
${{ number_format($selfPaymentStats['total_amount_collected'], 2) }}
Total Collected
@if($businessPlan->selfPayments->count() > 0)

Self-Payments History

@foreach($businessPlan->selfPayments->sortByDesc('created_at') as $selfPayment) @endforeach
Employee Amount Status Date Transaction Actions
{{ $selfPayment->businessEmployee->full_name }}
{{ $selfPayment->businessEmployee->email }}
${{ number_format($selfPayment->amount_in_dollars, 2) }} {{ $selfPayment->status_label }} {{ $selfPayment->paid_at ? $selfPayment->paid_at->format('M j, Y g:i A') : $selfPayment->created_at->format('M j, Y g:i A') }} {{ $selfPayment->transaction_reference ?? 'N/A' }} @if($selfPayment->isCompleted()) Refund @else N/A @endif
@endif @if($businessPlan->auditLogs->count() > 0)

Recent Activity

@foreach($businessPlan->auditLogs->sortByDesc('created_at')->take(10) as $log)

{{ $log->description }}

{{ $log->created_at->format('M j, Y g:i A') }} @if($log->user) by {{ $log->user->fname }} {{ $log->user->lname }} @endif

{{ ucfirst(str_replace('_', ' ', $log->action)) }}
@endforeach
@endif