Show invoices for a given project.
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<div>{{ $project->customer->email }}</div>
|
<div>{{ $project->customer->email }}</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -52,14 +52,50 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</section>
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Invoices -->
|
||||||
|
<div class="p-4 sm:p-8 bg-white dark:bg-gray-800 shadow sm:rounded-lg">
|
||||||
|
<div class="max-w">
|
||||||
|
<section>
|
||||||
|
<header>
|
||||||
|
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||||
|
{{ __('invoice.Invoices') }}
|
||||||
|
</h2>
|
||||||
|
<summary class="cursor-pointer flex flex-row w-full mt-4">
|
||||||
|
<div class="w-1/6 font-bold border-b-2">{{ __('invoice.Invoice Number') }}</div>
|
||||||
|
<div class="w-1/3 font-bold border-b-2">{{ __('customer.Customer') }}</div>
|
||||||
|
<div class="w-1/4 font-bold border-b-2">{{ __('common.Name') }}</div>
|
||||||
|
<div class="w-1/12 font-bold border-b-2">{{ __('invoice.State') }}</div>
|
||||||
|
<div class="w-1/12 font-bold border-b-2 text-right">{{ __('invoice.Sum') }}</div>
|
||||||
|
<div class="w-1/12 font-bold border-b-2 text-right">{{ __('common.Created at') }}</div>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
@foreach($project->invoices as $invoice)
|
||||||
|
<details class="even:bg-gray-100 odd:bg-white">
|
||||||
|
<summary class="cursor-pointer flex flex-row w-full"
|
||||||
|
@click="window.location.href='/invoice/' + invoice.id;">
|
||||||
|
<div class="w-1/6">{{ $invoice->number }}</div>
|
||||||
|
<div class="w-1/3">{{ $invoice->customer->name }}</div>
|
||||||
|
<div class="w-1/4">{{ $invoice->address->name }}</div>
|
||||||
|
<div class="w-1/12">{{ $invoice->localized_state }}</div>
|
||||||
|
<div class="w-1/12 text-right">{{ \Illuminate\Support\Number::currency($invoice->sum) }}</div>
|
||||||
|
<div class="w-1/12 text-right">{{ $invoice->created }}</div>
|
||||||
|
</summary>
|
||||||
|
</details>
|
||||||
|
@endforeach
|
||||||
|
</header>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="p-4 sm:p-8 bg-white dark:bg-gray-800 shadow sm:rounded-lg">
|
<div class="p-4 sm:p-8 bg-white dark:bg-gray-800 shadow sm:rounded-lg">
|
||||||
<div class="max-w">
|
<div class="max-w">
|
||||||
<div class="flex flex-row items-end gap-2 w-full">
|
<div class="flex flex-row items-end gap-2 w-full">
|
||||||
<x-primary-button onclick="window.location.href = '{{ route('project.edit', $project->id) }}'"><x-edit-icon class="mr-4"/>{{ __('form.Edit') }}</x-primary-button>
|
<x-primary-button onclick="window.location.href = '{{ route('project.edit', $project->id) }}'">
|
||||||
|
<x-edit-icon class="mr-4"/>{{ __('form.Edit') }}</x-primary-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user