@extends('layouts.app') @section('content')

المتطوعون

إضافة متطوع
إجمالي المتطوعين

{{ $totalVolunteers }}

المتطوعين النشطين

{{ $activeVolunteers }}

المتطوعين حسب المشروع
@foreach($projectsWithStats as $p) @if($p->volunteers_count > 0) {{ $p->name }}: {{ $p->volunteers_count }} @endif @endforeach @if($projectsWithStats->sum('volunteers_count') == 0) لا يوجد متطوعين معينين لمشاريع بعد. @endif
@foreach($volunteers as $v)
{{ $v->name }}
@if($v->active) نشط @else غير نشط @endif
{{ $v->phone ?? '—' }}
{{ $v->email }}
@if($v->project) {{ $v->project->name }} @elseif($v->campaign) {{ $v->campaign->title }} @elseif($v->guestHouse) {{ $v->guestHouse->name }} @else غير معين @endif
@endforeach
{{ $volunteers->links() }}
@endsection