@extends('layouts.app') @section('title', 'Customer Points - ' . $customer->full_name) @section('content')

Points History for {{ $customer->full_name }}

Back to Customers
@include('layouts.partials.flash')
Total Points Balance

{{ $totalPoints }}

Add/Deduct Points
@csrf
@error('change')
{{ $message }}
@enderror
Use positive numbers to add points, negative to deduct
@error('reason')
{{ $message }}
@enderror
Points History
@if($points->count() > 0) @foreach($points as $point) @endforeach @else @endif
Date Points Change Reason Added By
{{ $point->created_at->format('Y-m-d H:i') }} @if($point->change > 0) +{{ $point->change }} @else {{ $point->change }} @endif {{ $point->reason }} @if($point->creator) {{ $point->creator->name }} @else System @endif
No points history found
@endsection