@extends('layouts.app') @section('content') @include('accounting.partials.nav')

Off-POS Clearance

@if (session('status'))
{{ session('status') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
Pricing Tier: {{ (int) $tier }}
Showing all unresolved Off-POS items
{{-- Summary Card with Totals --}}
Off-POS Cash Total: {{ number_format((float) ($summary['offpos_cash_total'] ?? 0), 2) }}
Off-POS Card Total: {{ number_format((float) ($summary['offpos_card_total'] ?? 0), 2) }}
(Fees excluded)
{{-- Date-wise breakdown (collapsible) --}} @if(!empty($summaryByDate))
View date-wise breakdown ({{ count($summaryByDate) }} {{ count($summaryByDate) === 1 ? 'day' : 'days' }})
@foreach($summaryByDate as $day) @endforeach
Date Cash Card Note
{{ \Carbon\Carbon::parse($day->sale_date)->format('M d, Y') }} {{ number_format((float) $day->offpos_cash_total, 2) }} {{ number_format((float) $day->offpos_card_total, 2) }} {{ $day->note ?? '-' }}
@endif
@csrf>
@php $lineSum = 0.0; @endphp @forelse ($items as $it) @php $lineSum += (float) ($it['line_total'] ?? 0); @endphp @empty @endforelse @if (count($items) > 0) @endif
Barcode Product Qty Unit Price Line Total Date Range
{{ $it['barcode'] }} {{ $it['name'] }} {{ number_format((float) $it['qty'], 3) }} {{ number_format((float) $it['unit_price'], 2) }} {{ number_format((float) $it['line_total'], 2) }} @if($it['first_date'] && $it['last_date']) @if($it['first_date'] === $it['last_date']) {{ \Carbon\Carbon::parse($it['first_date'])->format('M d') }} @else {{ \Carbon\Carbon::parse($it['first_date'])->format('M d') }} - {{ \Carbon\Carbon::parse($it['last_date'])->format('M d') }} @endif @else - @endif
No unresolved Off-POS items found.
Selected Items Total {{ number_format((float) $lineSum, 2) }}
Creates a posted invoice for reporting only (no stock movement). Payments use the Off-POS totals shown above.
@endsection