@extends('layouts.admin') @section('title','Manage Customer Credits') @section('page-title','๐Ÿ’ฐ Manage Customer Credits') @section('styles') @endsection @section('content')
{{-- LEFT: Adjust Panel --}}

๐Ÿ’ฐ Adjust Customer Credit

Current Credit Balance

$0.00
@csrf
{{-- RIGHT: History --}}

๐Ÿงพ All Credit History

{{ $transactions->total() }} records
{{-- Filters --}}
@if(request('customer_id')) @endif
Reset
@forelse($transactions as $tx) @empty @endforelse
Date & Time Customer Type Amount Admin Note / Reason Admin
{{ $tx->created_at->format('Y-m-d H:i:s') }} ๐Ÿ‘ค {{ $tx->user->name ?? 'โ€”' }} @if($tx->type === 'credit') โž• Added @else โ€” Deducted @endif @if($tx->type === 'credit') +${{ number_format($tx->amount,2) }} @else -${{ number_format($tx->amount,2) }} @endif {{ $tx->note ?: 'โ€”' }} {{ $tx->source === 'admin-adjustment' ? 'Admin' : 'System' }}
No credit history found
{{ $transactions->withQueryString()->links() }}
@endsection @section('scripts') @endsection