@extends('layouts.app-mobile-partner')
@section('title', 'Partner Help')
@section('apptitle', 'Help & FAQ')

@section('appheaderright')
<a href="{{ route('pa.home') }}" class="ah-back" aria-label="Back">‹</a>
@endsection

@section('content')

<div class="app-section app-pad">
    <div class="app-help-hero">
        <div class="ahh-ic">💡</div>
        <h3>Partner help centre</h3>
        <p>Find answers fast or message our partner success team.</p>
    </div>

    <details class="faq-app" open>
        <summary>How do I accept a visit?</summary>
        <div class="fa-body">
            <p>Open <strong>Visits</strong> in the bottom nav. Tap any visit with status "Scheduled", then tap <strong>✓ Accept visit</strong>. The customer is notified instantly.</p>
        </div>
    </details>

    <details class="faq-app">
        <summary>How do I update my status during a visit?</summary>
        <div class="fa-body">
            <p>On the visit detail page, use the status buttons as you progress: <strong>🚗 On the way → 📍 Arrived → 🔧 Start work → ✓ Complete</strong>. The customer tracks you in real time.</p>
        </div>
    </details>

    <details class="faq-app">
        <summary>How does OTP verification work?</summary>
        <div class="fa-body">
            <p>Once you arrive, ask the customer for their 4-digit OTP. Sharing it confirms you arrived at the right address. Never start work without the OTP.</p>
        </div>
    </details>

    <details class="faq-app">
        <summary>When do I get paid?</summary>
        <div class="fa-body">
            <p>Funds from completed visits are transferred to your UPI/bank every Monday. Track your earnings in the <strong>Earnings</strong> tab.</p>
        </div>
    </details>

    <details class="faq-app">
        <summary>Can I decline a visit?</summary>
        <div class="fa-body">
            <p>Yes. On the visit detail page, tap <strong>✕ Decline</strong>. Declining too often affects your partner rating, so decline only when truly unavailable.</p>
        </div>
    </details>

    <details class="faq-app">
        <summary>How do I upload live photo proof?</summary>
        <div class="fa-body">
            <p>On the visit detail page, scroll to <strong>Live photo proof</strong>. Tap "Choose File" to capture before/during/after photos. The customer sees them in real time.</p>
        </div>
    </details>

    <details class="faq-app">
        <summary>How do I toggle Online/Offline?</summary>
        <div class="fa-body">
            <p>Tap the <strong>Online / Offline</strong> pill at the top-right of the header. When Offline, you won't receive new visit requests.</p>
        </div>
    </details>

    <details class="faq-app">
        <summary>What happens if I miss a visit?</summary>
        <div class="fa-body">
            <p>Missing 3+ visits per month affects your rating. After 60+ minutes of being late, the visit is auto-cancelled and a re-dispatch fee may apply.</p>
        </div>
    </details>

    <div class="app-help-cta">
        <p>Still need help?</p>
        <a href="https://wa.me/{{ $siteWhatsapp }}" target="_blank" class="btn-app btn-app-primary">WhatsApp partner support</a>
        <a href="tel:{{ $sitePhone }}" class="btn-app btn-app-outline" style="margin-top: 8px;">Call {{ $sitePhone }}</a>
    </div>
</div>
@endsection