@extends('PointsAdmin.layout') @section('title',"Dashboard") @section('page-name',"Hello ".$admin['name']) @section('page-detail',"Welcome Back!") @section('pagelink', 'dashboard') @section('body')
{{ $assignment->message }}
@endif {{ $assignment->created_at->format('M d, Y') }}| Name & Product | Progress | Total Quantity | Redeemed Points | Target Points |
|---|---|---|---|---|
@if($target->custom == null)
{{$target->name}}@else{{$target->custom}}@endif |
@php
$percent = calculatePercentage($target->progress, $target->quantity);
// dd($percent);
@endphp
{{$percent['value']}}% {{$percent['status']}} |
{{$target->quantity}} | {{$target->progress ?? '0'}} |
Until: {{ \Carbon\Carbon::parse($target->last_date)->format('M d, Y') }}
{{$target->quantity - $target->progress}} |
Updated at: {{$currentDate}}
| Employee Name | Employee ID | Redeemed | Pending | Last Claimed |
|---|---|---|---|---|
{{$employee->name}} |
{{$employee->id}} | {{$employee->redeemed_points}} | {{$employee->pending_points}} | {{ \Carbon\Carbon::parse($employee->date)->format('M-d-Y') }} |