@php
use App\OrderItems;
/**
* @var OrderItems $row
*/
@endphp
@foreach($rows as $row)
@include('account.order.shared.product_image', [
'image' => $row->storedProductImage($language)
])
@include('account.order.shared.product_title', [
'title' => $row->storedTitle($language),
'class' => 'bold'
])
@include('account.order.shared.product_title', [
'title' => $row->storedSubtitle($language)
])
{{$row->getStartDateString()}}
x{{$row->getCount()}}
@if($offline)
{{"N/A"}}
@else
{{$currency.number_format($row->unitFees(true) - $row->unitDiscounts(true), 2, ".", ",")}}
@if($row->discountValue + $row->discountEvent > 0)
{{$currency.number_format($row->unitFees(true), 2, ".", ",")}}
@endif
@if($row->order_item_type != \App\Enumerables\OrderItemTypes::TRANSLATION)
@if($row->depositFees > 0)
@elseif($row->serviceFees > 0)
@endif
@endif
@endif
@if($legacyOrder ?? true)
@if($offline)
{{"N/A"}}
@else
{{$currency.number_format(($row->applicationFees ?? 0), 2)}}
@endif
@endif
@if($offline)
{{"N/A"}}
@elseif(($discount = $row->unitDiscounts(true)) >= 0)
{{$currency.number_format($discount, 2)}}
@endif
@endforeach