@include('front.pages.cabinet.menu', ['user' => $user, 'childrenList' => $childrenList])
{{ShowLabelById(223)}}
{{ShowLabelById(223)}}
{{ShowLabelById(226)}}
@php
$totalPoints = $user_orders->sum(function ($order) {
return optional($order->ordersData)->gift_card_sum ?? 0;
});
@endphp
{{ShowLabelById(211)}}:
{{ number_format($totalPoints, 0) }} {{ ShowLabelById(217) }}
-
@php
$ordersWithPoints = $user_orders->filter(function ($order) {
return optional($order->ordersData)->gift_card_sum > 0;
});
@endphp
@if($ordersWithPoints->isNotEmpty())
@foreach($ordersWithPoints as $order)
@php
$points = $order->ordersData->gift_card_sum;
$expireDate = \Carbon\Carbon::parse($order->updated_at)
->addMonths(3)
->format('d.m.Y');
@endphp
-
{{ number_format($points, 0) }} {{ShowLabelById(217)}}{{ ShowLabelById(212) }} {{ $expireDate }}
@endforeach
@else
-
{{ ShowLabelById(213) }}
@endif
@if($ul && $ul->itemByLang)
{!! $ul->itemByLang->body !!}
@endif
@if($ul && $ul->itemByLang)
{{ $ul->itemByLang->short_descr }}
{{--
--}}
@endif