@extends('layouts.app') @section('title','Gift Registry') @section('heading','Gift Registry') @section('subheading','All physical gifts for ' . ($event?->couple_name ?? 'current event')) @section('topbar_actions') Add Gift @endsection @section('content')
All Gifts
{{ $gifts->total() }} total gifts
@forelse($gifts as $gift) @empty @endforelse
# Item Category Donor Est. Value (TZS) Date Status Actions
{{ $gifts->firstItem() + $loop->index }}
{{ $gift->item_name }}
{{ ucwords(str_replace('_',' ',$gift->category)) }}
{{ ucwords(str_replace('_',' ',$gift->category)) }}
{{ strtoupper(substr($gift->donor_name ?? 'U', 0, 2)) }}
{{ $gift->donor_name }}
{{ $gift->donor_phone }}
{{ $gift->estimated_value > 0 ? number_format($gift->estimated_value) : '—' }} {{ $gift->created_at->format('M d, Y') }} {{ ucfirst($gift->status) }}
@if($gift->status === 'pledged')
@csrf @method('PATCH')
@endif Edit
@csrf @method('DELETE')
No gifts registered. Register first gift →
@if($gifts->hasPages())
{{ $gifts->links() }}
@endif
@endsection