@extends('admin.layouts.app') @section('title','Volunteers') @section('breadcrumb') / Volunteers @endsection @section('content')
{{ $stats['total'] }}
Total
{{ $stats['active'] }}
Active
{{ $stats['assigned'] }}
Assigned
{{ $stats['completed'] }}
Completed
Reset
All Volunteers
{{ $volunteers->total() }}
@forelse($volunteers as $vol) @empty @endforelse
IDNameMobileSkills DepartmentProjectAvailabilityJoined StatusActions
{{ $vol->volunteer_id }}
@if($vol->photo) @else
{{ substr($vol->name,0,1) }}
@endif
{{ $vol->name }}
{{ $vol->mobile }} {{ Str::limit($vol->skills,30) ?? '—' }} {{ $vol->department?->name ?? '—' }} {{ Str::limit($vol->assignedProject?->project_title,25) ?? '—' }} {{ ucwords(str_replace('_',' ',$vol->availability)) }} {{ $vol->joining_date?->format('d M Y') ?? '—' }} {{ ucfirst($vol->status) }}
@if(auth()->user()->hasPermission('volunteers.edit')) @endif @if(auth()->user()->hasPermission('volunteers.delete')) @endif
No volunteers found
@if($volunteers->hasPages()) @endif
@endsection