@extends('layouts/contentLayoutMaster') @section('title', ' Pending Targets List') @section('vendor-style') {{-- vendor css files --}} @endsection @section('content')

Targets {{ $WorkFlowApproval->status == 1 ? 'Approved' : ($WorkFlowApproval->status == 3 ? 'Rejected' : ($WorkFlowApproval->status == 4 ? 'Reverted' : 'Pending')) }}

{{-- --}} @if ($is_curr_user_on_curr_step) @else @endif
@php $type = $target->type; switch ($type) { case 'shedwise': $badgeHtml = 'Shedwise'; break; case 'source_type': $badgeHtml = 'Source Type'; break; case 'mcc': $badgeHtml = 'MCC'; break; case 'mcc_source_type': $badgeHtml = 'MCC Source Type'; break; case 'ao_employee': $badgeHtml = 'AO Employee'; break; default: $badgeHtml = 'N/A'; } @endphp
Type : {!! $badgeHtml !!}
From : {{$target->from ? $target->from : ''}}
To : {{ $target->to ? $target->to : '' }}
{{--
Created By : {{$target->createdBy ? $target->createdBy->name : ''}}
--}}
@foreach ($targetDetails as $tar) @endforeach
Plant AO CP Source Type Employee Target (Vol) Target (Price) Actual (Vol) Actual (Price)
{{ $tar->plantText ?? '' }} {{ $tar->area_office_text ?? '' }} {{ $tar->collection_point_text ?? '' }} {{ $tar->source_type_text ?? '' }} {{ $tar->employee_text ?? '' }} {{ $tar->volume ?? '' }} {{ $tar->rate ?? '' }} {{ $tar->total_ts_volume ?? '' }} {{ $tar->final_rate ?? '' }}
@if ($target->type == 'mcc_source_type' || $target->type == 'source_type') @foreach ($groupedData as $key => $tar) @endforeach
{{ $target->type ? $target->type : '' }}
Type Target (Vol) Target (Price) Actual (Vol) Actual (Price)
{{ $tar['source_type_text'] ? $tar['source_type_text'] : '' }} {{ $tar['tar_total_ts_volume'] ? $tar['tar_total_ts_volume'] : '' }} {{ $tar['tar_final_rate'] ? $tar['tar_final_rate'] : '' }} {{ $tar['ach_total_ts_volume'] ? $tar['ach_total_ts_volume'] : '' }} {{ $tar['ach_final_rate'] ? $tar['ach_final_rate'] : '' }}
@endif @if ($target->type == 'mcc_source_type' || $target->type == 'source_type') @else @endif @foreach ($finalObj as $key => $tar) @endforeach
Total
{{ $target->type ? $target->type : '' }}
Target (Vol) Target (Price) Actual (Vol) Actual (Price)
{{ $tar['temp_total_ts_volume'] ? $tar['temp_total_ts_volume'] : '' }} {{ $tar['temp_final_rate'] ? $tar['temp_final_rate'] : '' }} {{ $tar['grand_total_ts_volume'] ? $tar['grand_total_ts_volume'] : '' }} {{ $tar['grand_final_rate'] ? $tar['grand_final_rate'] : '' }}
@endsection @section('vendor-script') {{-- vendor files table data --}} @endsection @section('page-script') @endsection