@extends('layouts.app') @section('title', 'M-Pesa Agent — Cashier') @section('css') @endsection @section('content')

M-Pesa Cashier {{ Auth::user()->first_name }} — {{ now()->format('D, d M') }}

{{-- LEFT: Transaction Entry --}}
{{-- Type Selection --}}
{{-- Entry Form --}}
{{-- RIGHT: Shift Summary --}}

Shift Summary — Today

{{ number_format($shiftSummary['deposits']) }}
Deposits
{{ $shiftSummary['deposit_count'] }} txns
{{ number_format($shiftSummary['withdrawals']) }}
Withdrawals
{{ $shiftSummary['withdrawal_count'] }} txns
{{ number_format($shiftSummary['floats']) }}
Float
{{ $shiftSummary['float_count'] }} txns
{{-- Recent Transactions --}}

Recent

@forelse($todayTxns->take(15) as $txn)
@php $colors = ['deposit' => 'success', 'withdrawal' => 'danger', 'float' => 'primary']; $icons = ['deposit' => '↓', 'withdrawal' => '↑', 'float' => '⟳']; @endphp {{ $icons[$txn->type] ?? '' }}
{{ $txn->type_label }}
{{ $txn->created_at->format('H:i:s') }} @if($txn->contact) · {{ $txn->contact->name }} @endif @if($txn->mpesa_code) · {{ $txn->mpesa_code }} @endif
{{ $txn->type === 'withdrawal' ? '−' : '+' }}{{ number_format($txn->amount) }}
@empty

No transactions yet today

@endforelse
@endsection @section('javascript') @endsection