@extends('Manager.layout') @section('title',"Manager") @section('page-name',"Dashboard") @section('page-detail',"Welcome Back!") @section('pagelink', 'dashboard') @section('body')
@if(isset($assignedEmojis) && $assignedEmojis->count() > 0)
Your Assigned Emojis & GIFs
Special emojis and GIFs assigned to you
@foreach($assignedEmojis as $assignment)
@if($assignment->emoji->type === 'emoji') {{ $assignment->emoji->emoji_text }} @else {{ $assignment->emoji->name }} @endif
{{ $assignment->emoji->name }}
@if($assignment->message)

{{ $assignment->message }}

@endif {{ $assignment->created_at->format('M d, Y') }}
@endforeach
@endif
@if($targets->isEmpty())

No Targets Assigned Yet!

@else @php $categories = json_decode($departments->categories); @endphp @foreach($categories as $category) @if($targets->firstWhere('category', $category))

Category : {{ $category ?? 'N/A' }}


@foreach($targets as $target) @if($target->category == $category) @if($target->product_id) @else @endif @endif @endforeach
Target/Product Progress Last Date Completion Date Status
{{ $products->firstWhere('id', $target->product_id)->name }}{{ Str::limit($target->custom ?? 'No Custom', 50) }} @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
@endif @endforeach @endif
@if($points->isEmpty())

No Claimed Points to Show

@else
@foreach($points as $point) @if($point->custom == null) @else @endif @endforeach
Category VIN# Target/Product Points Claimed Date Status
{{ $point->category }} {{ $point->vin_no }}{{ $point->name }}{{ Str::limit($point->custom, 50) }}{{ $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
@endif
@endsection