Build header for customers when creating projects and correct link to invoices.
This commit is contained in:
@@ -32,6 +32,12 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="grid grid-cols-4 font-bold">
|
||||
<div>{{ __('customer.Customer') }}</div>
|
||||
<div>{{ __('common.Email') }}</div>
|
||||
<div>{{ __('common.Address') }}</div>
|
||||
<div>{{ __('common.City') }}</div>
|
||||
</div>
|
||||
<template x-for="(customer, index) in getFilteredCustomer()">
|
||||
<div class="cursor-pointer grid grid-cols-4 even:bg-gray-100 odd:bg-white"
|
||||
:class="customer.id == project.customer_id ? 'font-bold' : ''"
|
||||
@@ -39,7 +45,7 @@
|
||||
<div x-text="customer.name"></div>
|
||||
<div x-text="customer.email"></div>
|
||||
<div x-text="(customer.address) ? customer.address.address : ''"></div>
|
||||
<div x-text="(customer.address) ? customer.address.city : ''"></div>
|
||||
<div x-text="(customer.address) ? customer.address.zip + ' ' + customer.address.city : ''"></div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
@foreach($project->invoices as $invoice)
|
||||
<details class="even:bg-gray-100 odd:bg-white hover:bg-gray-400">
|
||||
<summary class="cursor-pointer flex flex-row w-full"
|
||||
@click="window.location.href='/invoice/' + invoice.id;">
|
||||
onclick="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>
|
||||
|
||||
Reference in New Issue
Block a user