@extends('layouts.admin') @section('content')
@if(count($donations) > 0)
Php {{ number_format($sumOfDonated, 2) }}
Total Amount Donated
Php {{ number_format($sumOfPledge, 2) }}
Total Amount Pledged
@foreach ($donations as $key => $value) @endforeach
No. Name Amount Donated (Php) Amount Pledged (Php) Status Date Submitted Action
{{ $loop->iteration + $donations->firstItem() - 1 }} {{ $value->name }} {{ number_format($value->amount_donated, 2) }} {{ number_format($value->amount_pledge, 2) }} {{ $value->is_paid ? 'Paid' : 'Unpaid' }} {{ Helper::dateFormatter($value->created_at) }}
Showing {{ $donations->firstItem() }} to {{ $donations->lastItem() }} of total {{$donations->total() }} entries {{ $donations->withQueryString()->links() }}
@else

There are no donations yet.

All donations will show up here.
@endif
@endsection @section('modals') @endsection @push('scripts') @endpush