@extends('layouts.portal') @section('title', __('Sales Invoices')) @push('styles') @include('accounting.journal._styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Sales Invoices') }}

{{ __('Sales made at the counter, with their stock issue, collection and journal entry.') }}

{{ __('Counter Sale') }}
@if(session('success'))
{{ session('success') }}
@endif
@forelse($documents as $document) @empty @endforelse
{{ __('Number') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Payment') }} {{ __('Due date') }} {{ __('Total') }} {{ __('Paid') }} {{ __('Status') }}
{{ $document->document_number }} {{ $document->document_date->format('Y-m-d') }} {{ $document->person?->first_name }} {{ $document->person?->last_name }} {{ $document->quickPaymentMethod?->name ?? __('Credit') }} {{ $document->due_date?->format('Y-m-d') }} {{ number_format((float) $document->total, 2) }} {{ number_format((float) $document->amount_paid, 2) }} {{ __(ucfirst($document->status)) }}
{{ __('No sales invoices found.') }}
{{ $documents->links() }}
@endsection