@extends('PointsAdmin.layout') @section('title',"Requested Points") @section('page-name',"Requested Point") @section('page-detail',"All Requested Points Information") @section('body')

@if($points->isEmpty())

No Points Yet!

@else
@foreach($points as $point) @if($point->prod) @php $pName = $products->firstWhere('id', $point->prod)->name; @endphp @else @endif @endforeach
Employee VIN# Target/Product Points Claimed Date Status Action
{{ $point->e_name }} {{ $point->vin_no }}{{ $pName }}{{ Str::limit($point->custom ?? 'No Custom', 20) }}{{ $point->points }} {{ \Carbon\Carbon::parse($point->created_at)->format('m-d-y') }} @if($point->status === 'Redeemed') Approved @elseif($point->status === 'Rejected') Rejected @elseif($point->status === 'Pending') Pending @endif
@if($point->status === 'Pending') Approve Reject @elseif($point->status === 'Redeemed') Reverse @elseif($point->status === 'Rejected') Reprocess @endif Edit
@endif
@endsection @section('custom-scripts') @endsection