@extends('modules.head') @section('contenido')

Tier Pricing Suggestions

@php $completedItems = $tierPricingSuggestion->getTotalApprovedSuggestions() + $tierPricingSuggestion->getTotalRejectedSuggestions(); $totalItems = $tierPricingSuggestion->getTotalSuggestions(); $leftItems = $totalItems - $completedItems; $progress = 0; $progressLeft = 100; if($completedItems){ $progress = round(($completedItems * 100) / $totalItems); $progressLeft = 100 - $progress; } @endphp
{{ $completedItems }} Completed - {{$progress}}%
{{ $leftItems }} Left - {{$progressLeft}}%
Apply

@foreach($tierPricingSuggestion->tierPricingSuggestionLines->where('tier_pricing_suggestion_line_status_id', 1) as $tierPricingSuggestionLine) @php $css_class = ''; if( $tierPricingSuggestionLine->tierPricingSuggestionLineAction->name == 'upgrade') { $css_class = 'success'; } if ($tierPricingSuggestionLine->tierPricingSuggestionLineAction->name == 'downgrade') { $css_class = 'danger'; } @endphp @endforeach
BPCode Customer Current Tier Pricing Suggested Tier Pricing
{{ $tierPricingSuggestionLine->user->document }} {{ $tierPricingSuggestionLine->user->first_name }} @if($tierPricingSuggestionLine->currentTierPricing) {{ $tierPricingSuggestionLine->currentTierPricing->getName() }} @endif @if($tierPricingSuggestionLine->suggestedTierPricing) {{ $tierPricingSuggestionLine->suggestedTierPricing->getName() }} @endif
@foreach($tierPricingSuggestion->tierPricingSuggestionLines->where('tier_pricing_suggestion_line_status_id', '!=', 1) as $tierPricingSuggestionLine) @php $css_class = ''; if( $tierPricingSuggestionLine->tierPricingSuggestionLineAction->name == 'upgrade') { $css_class = 'success'; } if ($tierPricingSuggestionLine->tierPricingSuggestionLineAction->name == 'downgrade') { $css_class = 'danger'; } @endphp @endforeach
BPCode Customer Current Tier Pricing Suggested Tier Pricing Action
{{ $tierPricingSuggestionLine->user->document }} {{ $tierPricingSuggestionLine->user->first_name }} @if($tierPricingSuggestionLine->currentTierPricing) {{ $tierPricingSuggestionLine->currentTierPricing->getName() }} @endif @if($tierPricingSuggestionLine->suggestedTierPricing) {{ $tierPricingSuggestionLine->suggestedTierPricing->getName() }} @endif
@endsection