@extends('admin.layout') @section('title', 'PPC Spending') @section('page-title', 'PPC Spending') @section('page-icon', 'graph-up') @section('content') @php $curMonth = DateTime::createFromFormat('!m', $month)->format('F') . ' ' . $year; @endphp {{-- Month / Year Filter --}}
{{-- Stat cards --}}| Date | Team | Added By | Notes | Amount | Action |
|---|---|---|---|---|---|
| {{ $entry->created_at->format('d M Y') }} | {{ $entry->team?->name ?? '-' }} | {{ $entry->user?->name ?? '-' }} | {{ $entry->notes ?: '-' }} | ${{ number_format($entry->amount, 2) }} | @if(auth()->user()->hasRole('Admin') || $entry->user_id === auth()->id()) @endif |
| No entries for {{ $curMonth }}. | |||||
| Total | ${{ number_format($totalSpending, 2) }} | ||||