@extends('Manager.layout') @section('title',"Targets") @section('page-name',"Department Targets") @section('page-detail',"All Assigned Targets Information") {{--@section('pagelink', 'target')--}} @section('body')

@if($targets->isEmpty())

No Targets Assigned Yet!

@else

Department : {{ $department->name ?? 'No Department Assigned' }}


@foreach($targets as $target) @if($target->product_id) @else @endif @endforeach
Category Target/Product Total Points Redeemed Last Date Status Action
{{ $target->category }}{{ $products->firstWhere('id', $target->product_id)->name }}{{ Str::limit($target->custom ?? 'No Custom', 50) }}{{ $target->quantity }} {{ $target->progress ?? "Nothing Yet" }} {{ \Carbon\Carbon::parse($target->last_date)->format('m-d-y') }} @if($target->status === '2') Active @elseif($target->status === '1') Inactive @else Pending @endif
@endif
@endsection @section('custom-scripts') @endsection