@extends('Manager.layout') @section('title',"Manager") @section('page-name',"Dashboard") @section('page-detail',"Welcome Back!") @section('pagelink', 'dashboard') @section('body')
{{ $assignment->message }}
@endif {{ $assignment->created_at->format('M d, Y') }}| Target/Product | Progress | Last Date | Completion Date | Status | |
|---|---|---|---|---|---|
| {{ $products->firstWhere('id', $target->product_id)->name }} | @else{{ Str::limit($target->custom ?? 'No Custom', 50) }} | @endif
@php
$percent = calculatePercentage($target->progress, $target->quantity);
if($percent['value'] > '100')
{
$percent['value'] = '100';
}
@endphp
{{$percent['value']}}% {{$percent['status']}} |
{{ \Carbon\Carbon::parse($target->last_date)->format('m-d-y') }} | {{ $target->completion_date ? \Carbon\Carbon::parse($target->completion_date)->format('m-d-y') : 'Pending' }} | @if($target->status === '2') Active @elseif($target->status === '1') Inactive @else Pending @endif |
| Category | VIN# | Target/Product | Points | Claimed Date | Status | |
|---|---|---|---|---|---|---|
| {{ $point->category }} | {{ $point->vin_no }} | @if($point->custom == null){{ $point->name }} | @else{{ Str::limit($point->custom, 50) }} | @endif{{ $point->points }} | {{ \Carbon\Carbon::parse($point->created_at)->format('m-d-y') }} | @if($point->status === 'Redeemed') Redeemed @elseif($point->status === 'Rejected') Rejected @else Pending @endif |