{{ __('Recent Sales') }}
{{ __('Date') }} {{ __('Customer') }} {{ __('Payment status') }} {{ __('Due Amount') }} {{ __('Total') }} {{ __('Status') }} {{ __('Actions') }} @forelse ($sales as $sale) {{ $sale->date }} @if ($sale->customer) {{ $sale->customer->name }} @else {{ $sale->customer?->name }} @endif @php $type = $sale->payment_status->getBadgeType(); @endphp {{ $sale->payment_status->getName() }} {{ format_currency($sale->due_amount) }} {{ format_currency($sale->total_amount) }} @php $badgeType = $sale->status->getBadgeType(); @endphp {{ $sale->status->getName() }}
{{ __('View') }} {{ __('Print') }}
@empty
{{ __('No results found') }}
@endforelse
{{ $sales->links() }}
{{ __('Show Sale') }} - {{ __('Reference') }}: {{ $sale?->reference }}
@if ($sale != null) {{ __('Print') }} @endif
{{ __('Customer Info') }}:
{{ $sale?->customer?->name }}
{{ $sale?->customer?->address }}
{{ __('Email') }}: {{ $sale?->customer?->email }}
{{ __('Phone') }}: {{ $sale?->customer?->phone }}
{{ __('Invoice Info') }}:
{{ __('Invoice') }}: {{ $sale?->reference }}
{{ __('Date') }}: {{ format_date($sale?->date) }}
{{ __('Status') }} : @php $badgeType = $sale?->status->getBadgeType(); @endphp {{ $sale?->status->getName() }}
{{ __('Payment Status') }} : @php $type = $sale?->payment_status->getBadgeType(); @endphp {{ $sale?->payment_status->getName() }}
{{ __('Product') }} {{ __('Quantity') }} {{ __('Unit Price') }} {{ __('Subtotal') }} @if ($sale != null) @foreach ($sale->saleDetails as $item) {{ $item->name }}
{{ $item->code }}
{{ format_currency($item->unit_price) }} {{ $item->quantity }} {{ format_currency($item->sub_total) }}
@endforeach @endif
{{ __('Discount') }} ({{ $sale?->discount_percentage }}%) {{ format_currency($sale?->discount_amount) }}
{{ __('Tax') }} ({{ $sale?->tax_percentage }}%) {{ format_currency($sale?->tax_amount) }}
{{ __('Shipping') }} {{ format_currency($sale?->shipping_amount) }}
{{ __('Grand Total') }} {{ format_currency($sale?->total_amount) }}