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

{{ __('Supplier Invoices') }}

{{ __('Invoices received from suppliers, with item lines and direct account lines.') }}

{{ __('New supplier invoice') }}
@if(session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@forelse($documents as $document) @empty @endforelse
{{ __('Number') }} {{ __('Date') }} {{ __('Supplier') }} {{ __('Reference') }} {{ __('Project') }} {{ __('Due date') }} {{ __('Total') }} {{ __('Status') }}
{{ $document->document_number }} {{ $document->document_date->format('Y-m-d') }} {{ $document->person?->first_name }} {{ $document->person?->last_name }} {{ $document->reference }} {{ $document->project?->code }} {{ $document->due_date?->format('Y-m-d') }} {{ number_format((float) $document->total, 2) }} {{ __(ucfirst($document->status)) }}
{{ __('No supplier invoices found.') }}
{{ $documents->links() }}
@endsection