@extends('front-end.layouts.apps')

@section('title', 'مرسته کوونکي او شریکان')

@section('page_title', 'مرسته کوونکي او شریکان')

@section('main_container')
<div class="container" dir="rtl">
    {{-- Back button --}}
    <div class="mb-3">
        <a href="{{ url()->previous() }}" class="btn-outline-secondary rounded-pill">
            <i class="fas fa-arrow-right ms-1"></i> شاته
        </a>
    </div>

    {{-- Donors/Partners list --}}
    <div class="century-card p-4">
        <div class="d-flex align-items-center gap-3 mb-4">
            <i class="fas fa-handshake" style="font-size: 2.5rem; color: var(--adabi-gold);"></i>
            <h2 class="fw-bold" style="color: var(--adabi-dark);">مرسته کوونکي او شریکان</h2>
        </div>

        @if($donners->count() > 0)
            <div class="row g-4">
                @foreach ($donners as $row)
                    <div class="col-md-6">
                        <div class="donor-card">
                            <div class="donor-image">
                                <img src="{{ asset('storage/' . $row->image) }}" alt="{{ $row->name }}">
                            </div>
                            <div class="donor-details">
                                <h4 class="donor-name">{{ $row->name }}</h4>
                                <p class="donor-desc">{{ $row->details }}</p>
                                <p class="donor-amount"><i class="fas fa-donate"></i> {{ $row->amount }}</p>
                                <div class="donor-social">
                                    @if(isset($info) && $info)
                                        <a href="{{ $info->facebook_url }}" target="_blank" class="social-icon facebook"><i class="fab fa-facebook-f"></i></a>
                                        <a href="{{ $info->twitter_url }}" target="_blank" class="social-icon twitter"><i class="fab fa-twitter"></i></a>
                                        <a href="{{ $info->youtube_url }}" target="_blank" class="social-icon youtube"><i class="fab fa-youtube"></i></a>
                                        <a href="{{ $info->instegram_url }}" target="_blank" class="social-icon instagram"><i class="fab fa-instagram"></i></a>
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                @endforeach
            </div>
        @else
            <div class="alert alert-info text-center">
                <i class="fas fa-info-circle"></i> تر اوسه مرسته کوونکي نشته.
            </div>
        @endif
    </div>

    {{-- Bottom Navigation --}}
    <nav class="bottom-nav">
        <a href="{{ url('/') }}" class="nav-item {{ request()->is('/') ? 'active' : '' }}">
            <i class="fas fa-home"></i> <span>کور</span>
        </a>
        <a href="{{ route('public.categories') }}" class="nav-item {{ request()->is('categories') || request()->is('categories*') ? 'active' : '' }}">
            <i class="fas fa-list-ul"></i> <span>کټګورۍ</span>
        </a>
        <a href="{{ route('public.poetry_search') }}" class="nav-item {{ request()->is('poetry/search') ? 'active' : '' }}">
            <i class="fas fa-search"></i> <span>لټون</span>
        </a>
    </nav>
</div>
@endsection

