@extends('Manager.layout') @section('title',"Employee Points") @section('page-name',$category." Employee Point") @section('page-detail',"All Requested Points Information") {{--@section('pagelink', 'dashboard')--}} @section('body')
| Employee | VIN# | Target/Product | Points | Claimed Date | Action | |
|---|---|---|---|---|---|---|
| {{ $empName }} | {{ $point->vin_no }} | @if($targets->firstWhere('id', $point->target_id)->product_id ) @php $prod = $targets->firstWhere('id', $point->target_id)->product_id; $name = $products->firstWhere('id', $prod)->name; @endphp{{ $name }} | @else{{ Str::limit($targets->firstWhere('id', $point->target_id)->custom ?? 'No Custom', 20) }} | @endif{{ $point->points }} | {{ \Carbon\Carbon::parse($point->created_at)->format('m-d-y') }} | @if($point->status === 'Pending') Approve Reject @elseif($point->status === 'Redeemed') Approved @elseif($point->status === 'Rejected') Rejected @endif |