@extends('users.layouts.index') @section('content')

Generate Statement

{{-- --}}
PDF
@if(session('error'))
{{ session('error') }}
@endif @if(isset($transactions) && $transactions->count() > 0)
purewellness logo

Purewellness

P.O. Box 47419 - 00100

Nairobi, Kenya 00100

Start Date: {{ date('F d, Y', strtotime($startDate)) }}

End Date: {{ date('F d, Y', strtotime($endDate)) }}

{{--

Account #: {{ $selectedMeter->meter_number ?? $meters->first()->meter_number ?? 'N/A' }}

--}}

STATEMENT

{{ auth('client')->user()->name }}

{{ auth('client')->user()->building }}

{{ auth('client')->user()->location }}.

@foreach($transactions as $value) @endforeach
Date Transaction Type Amount Short Code Biller Number Phone Number
{{ $value->created_at->format('d M, Y') }} @if($value->transaction_type == 1) {{ __('Payment') }} @elseif($value->transaction_type == 2) {{ __('Receipt') }} @else {{ __('Charge') }} @endif {{ $value->amount }} {{ $value->business_short_code }} {{ $value->bill_ref_number }} {{ $value->phone_number }}
Total: {{ number_format($transactions->sum('amount'), 2) }}
{{ $transactions->withQueryString()->links('pagination::tailwind') }}
@else

No transactions found within the date range.

@endif @endsection