@extends('layouts.app') @section('title', 'Dues Calculator') @section('page-title', 'Dues Calculator') @section('content') @if(!$settings)
No active dues settings found. Configure dues rates →
@endif
{{-- ── Calculator Form ───────────────────────────────────────────────── --}}
Calculate Dues
{{-- LCI Good Standing Reference ──────────────────────────────────── --}}
Good Standing Thresholds
District & Multiple District dues paid in full
LCI unpaid balance must NOT exceed $10.00
Total LCI balance older than 90 days must NOT exceed $50.00
{{-- ── Breakdown Result ──────────────────────────────────────────────── --}}
@if($breakdown && $member)
{{ $member->full_name }} — {{ $member->category_display }}
Generate Invoice
{{ $settings->fiscal_year }} {{ match($breakdown['period']) { 'semi_annual_july' => 'Semi-Annual — July Billing', 'semi_annual_january' => 'Semi-Annual — January Billing', default => 'Annual Billing', } }}
LCI International Dues @if($breakdown['lci_discount_pct'] > 0) {{ $breakdown['lci_discount_pct'] }}% discount applied @endif ${{ number_format($breakdown['lci_amount'], 2) }}
District 306 B2 Dues ${{ number_format($breakdown['district_amount'], 2) }}
Multiple District (MD) Dues ${{ number_format($breakdown['md_amount'], 2) }}
Club Dues ${{ number_format($breakdown['club_amount'], 2) }}
Total Due ({{ $breakdown['currency'] }}) ${{ number_format($breakdown['total_amount'], 2) }}
{{-- Visual breakdown bar --}} @php $total = $breakdown['total_amount']; $lciPct = $total > 0 ? ($breakdown['lci_amount'] / $total) * 100 : 0; $districtPct = $total > 0 ? ($breakdown['district_amount'] / $total) * 100 : 0; $mdPct = $total > 0 ? ($breakdown['md_amount'] / $total) * 100 : 0; $clubPct = $total > 0 ? ($breakdown['club_amount'] / $total) * 100 : 0; @endphp
Dues Breakdown
LCI District MD Club
@else {{-- Category Reference Table --}} @if($settings)
Member Category Rate Reference — {{ $settings->fiscal_year }}
@foreach(['regular', 'family', 'student', 'leo_to_lion'] as $cat) @php $calc = $settings->calculateDues($cat, 'semi_annual_july'); @endphp @endforeach
Category LCI Discount Semi-Annual Annual Total
{{ ucwords(str_replace('_', ' ', $cat)) }} @if($calc['lci_discount_pct'] > 0) {{ $calc['lci_discount_pct'] }}% off @else @endif ${{ number_format($calc['total_amount'], 2) }} ${{ number_format($calc['total_amount'] * 2, 2) }}
@endif @endif
@endsection