@php($page = 'payments') {{env('APP_NAME')}} | Payments {{-- --}} {{-- @livewireStyles --}}
@include("components.navbar")
@include("components.sidebar")
{{-- stats card --}}

All Payments

{{number_format($allPayments)}}

{{--

--}}

Total Revenue

₦ {{number_format($totalRevenue)}}

{{--

--}}

{{date('Y')}}

₦ {{number_format($yearRevenue)}}

{{date('M')}} Revenue

₦ {{number_format($monthRevenue)}}

{{-- end stats card --}} {{-- table --}}

All Payments

@php($count = 1) @foreach ($payments as $payment) @php($count++) @endforeach
S/N Reference Customer Method Amount Status Date Action
{{ $count }} {{ $payment->reference }} {{ $payment->customer->type == "individual" ? ($payment->customer->first_name ." " . $payment->customer->last_name) : $payment->customer->corporate_name }} {{ $payment->method}} ₦ {{ number_format($payment->amount) }} {{ $payment->status }} {{ substr( $payment->created_at,0,10) }}
@include("components.footer")
{{-- --}} {{-- --}} {{-- --}}