@extends('admin.includes.base') @push('styles') @endpush @section('content')
@include('common.notify')
  Reset
View Receipts
@php $total = 0.0; @endphp @foreach($receipts as $index => $receipt) @if(!empty($receipt->donorInfo)) @else @endif @php $total += $receipt->amount; @endphp @endforeach
# Receipt ID Donor Name Donor Contact Amount Payment Method Payment Status Collected By Batch Status Event Sent Status Donated On Actions
{{ $index + 1 }} {{ $receipt->receipt_no }}{{ $receipt->donorInfo->first_name.' '.$receipt->donorInfo->last_name }}-{{ $receipt->donorInfo->email }} {{ $receipt->donorInfo->contact }}- -$ {{ $receipt->amount }} {{ $receipt->payment_mode }} @if($receipt->payment_status=='Paid') Paid @else Not Paid @endif {{ $receipt->adminInfo->name }} @if($receipt->batch_status=='Open') Open @else Closed @endif {{ ($receipt->event_id) ? getEvent($receipt->event_id) : '-' }} @if($receipt->is_sent=='1') Sent @else Not Sent @endif {{ date('d/m/Y',strtotime($receipt->created_at)) }} @if(Auth::guard('admin')->user()->utype=='Super' || Auth::guard('admin')->user()->utype=='Admin') @endif @if($receipt->payment_mode=='Pledge') @else @endif
Total $ {{ $total }}
@endsection @push('scripts')