@extends('layouts.app') @section('title') Point History @endsection @section('content')
@include('partials.customer_sidebar')

Point History

@if ($points->count() == 0)

No record

@endif @if($ongoing_expired && $ongoing_expired[0]->point_left > 0)
{{ $ongoing_expired[0]->point_left }} point(s) is going to expired on {{ $ongoing_expired[0]->exipred_date }}.
@endif

@if ($points->count() > 0)
@foreach ($points as $point) @endforeach
Date Points Description Total
{{ $point->created_at_formatted }} {{ $point->difference }} {{ $point->description ?? '-' }} {{ $point->after }}
{{ $points->links() }} @endif
@endsection