| Timestamp | Product | Channel | Rule matched | Cost | Postage | Markup | Channel Fee | VAT | Final price (inc tax) |
Margin %
of sale price, after fees
|
Trigger |
|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $ts->format('H:i:s') }}
{{ $ts->format('d/m/Y') }}
|
{{-- Product --}}
{{ $log->product_name }}
{{ $log->product_sku }}
|
{{-- Channel --}}
{{ $log->channel_name ?? "Channel #{$log->channel_id}" }} | {{-- Rule matched --}}
{{ $log->rule_name ?? '—' }}
@if($log->rule_id)
PR-{{ str_pad($log->rule_id, 3, '0', STR_PAD_LEFT) }}
@endif
|
{{-- Cost (calc group) --}}
@if($zeroCostRow)
|
{{-- Postage (calc group) --}}
@if($postageFee > 0) +£{{ number_format($postageFee, 2) }} @else — @endif | {{-- Markup £ + % stacked (calc group) --}}
@if($log->markup_applied !== null)
@if($markupPct !== null)
{{ number_format($markupPct, 1) }}%
@endif
@if($isLandedCostMarkup)
postage included
@endif
+£{{ number_format($log->markup_applied, 2) }}
@elseif($zeroCostRow)
n/a
@else
—
@endif
|
{{-- Channel Fee (calc group) --}}
@if(count($platformFeeLines) > 0)
@foreach($platformFeeLines as $feeLine)
@else
—
@endif
{{ $feeLine['short'] }}
+£{{ number_format($feeLine['amount'], 2) }}
@endforeach
TTL
+£{{ number_format($platformFee, 2) }}
|
{{-- VAT (calc group) --}}
@if($taxRate > 0)
{{ number_format($taxRate, 0) }}%
+£{{ number_format($taxAmount, 2) }}
@else
—
@endif
|
{{-- Final price --}}
£{{ number_format($log->final_price, 2) }} | {{-- Margin % --}}@if($margin !== null) @php $marginClass = $margin < 0 ? 'text-red-600 font-semibold' : ($margin < 5 ? 'text-red-400' : ($margin < 10 ? 'text-amber-600' : 'text-gray-700 dark:text-gray-300')); @endphp {{ number_format($margin, 1) }}% @elseif($zeroCostRow) n/a @else — @endif | {{-- Trigger --}}{{ $triggerLabel }} |
| No calculation logs found for the selected filters. | |||||||||||