Admin: import / completed.blade.php

This commit is contained in:
Benjamin Beganović 2021-06-07 18:08:47 +02:00
parent 105951321d
commit 0e3a87a762

View File

@ -1,106 +1,104 @@
@component('email.template.master', ['design' => 'light', 'settings' => $company->settings]) @component('email.template.admin-light', ['logo' => 'https://www.invoiceninja.com/wp-content/uploads/2015/10/logo-white-horizontal-1.png', 'settings' => $settings])
@slot('header') <div class="center">
@include('email.components.header', ['logo' => 'https://www.invoiceninja.com/wp-content/uploads/2015/10/logo-white-horizontal-1.png']) <h1>Import completed</h1>
@endslot <p>Hello, here is the output of your recent import job.</p>
<h1>Import completed</h1> <p><b>If your logo imported correctly it will display below. If it didn't import, you'll need to reupload your logo</b></p>
<p>Hello, here is the output of your recent import job.</p>
<p><b>If your logo imported correctly it will display below. If it didn't import, you'll need to reupload your logo</b></p> <p><img src="{{ $company->present()->logo() }}"></p>
<p><img src="{{ $company->present()->logo() }}"></p> @if(isset($company) && $company->clients->count() >=1)
<p><b>{{ ctrans('texts.clients') }}:</b> {{ $company->clients->count() }} </p>
@endif
@if(isset($company) && $company->clients->count() >=1) @if(isset($company) && count($company->products) >=1)
<p><b>{{ ctrans('texts.clients') }}:</b> {{ $company->clients->count() }} </p> <p><b>{{ ctrans('texts.products') }}:</b> {{ count($company->products) }} </p>
@endif @endif
@if(isset($company) && count($company->products) >=1) @if(isset($company) && count($company->invoices) >=1)
<p><b>{{ ctrans('texts.products') }}:</b> {{ count($company->products) }} </p> <p><b>{{ ctrans('texts.invoices') }}:</b> {{ count($company->invoices) }} </p>
@endif @endif
@if(isset($company) && count($company->invoices) >=1) @if(isset($company) && count($company->payments) >=1)
<p><b>{{ ctrans('texts.invoices') }}:</b> {{ count($company->invoices) }} </p> <p><b>{{ ctrans('texts.payments') }}:</b> {{ count($company->payments) }} </p>
@endif @endif
@if(isset($company) && count($company->payments) >=1) @if(isset($company) && count($company->recurring_invoices) >=1)
<p><b>{{ ctrans('texts.payments') }}:</b> {{ count($company->payments) }} </p> <p><b>{{ ctrans('texts.recurring_invoices') }}:</b> {{ count($company->recurring_invoices) }} </p>
@endif @endif
@if(isset($company) && count($company->recurring_invoices) >=1) @if(isset($company) && count($company->quotes) >=1)
<p><b>{{ ctrans('texts.recurring_invoices') }}:</b> {{ count($company->recurring_invoices) }} </p> <p><b>{{ ctrans('texts.quotes') }}:</b> {{ count($company->quotes) }} </p>
@endif @endif
@if(isset($company) && count($company->quotes) >=1) @if(isset($company) && count($company->credits) >=1)
<p><b>{{ ctrans('texts.quotes') }}:</b> {{ count($company->quotes) }} </p> <p><b>{{ ctrans('texts.credits') }}:</b> {{ count($company->credits) }} </p>
@endif @endif
@if(isset($company) && count($company->credits) >=1) @if(isset($company) && count($company->projects) >=1)
<p><b>{{ ctrans('texts.credits') }}:</b> {{ count($company->credits) }} </p> <p><b>{{ ctrans('texts.projects') }}:</b> {{ count($company->projects) }} </p>
@endif @endif
@if(isset($company) && count($company->projects) >=1) @if(isset($company) && count($company->tasks) >=1)
<p><b>{{ ctrans('texts.projects') }}:</b> {{ count($company->projects) }} </p> <p><b>{{ ctrans('texts.tasks') }}:</b> {{ count($company->tasks) }} </p>
@endif @endif
@if(isset($company) && count($company->tasks) >=1) @if(isset($company) && count($company->vendors) >=1)
<p><b>{{ ctrans('texts.tasks') }}:</b> {{ count($company->tasks) }} </p> <p><b>{{ ctrans('texts.vendors') }}:</b> {{ count($company->vendors) }} </p>
@endif @endif
@if(isset($company) && count($company->vendors) >=1) @if(isset($company) && count($company->expenses) >=1)
<p><b>{{ ctrans('texts.vendors') }}:</b> {{ count($company->vendors) }} </p> <p><b>{{ ctrans('texts.expenses') }}:</b> {{ count($company->expenses) }} </p>
@endif @endif
@if(isset($company) && count($company->expenses) >=1) @if(isset($company) && count($company->company_gateways) >=1)
<p><b>{{ ctrans('texts.expenses') }}:</b> {{ count($company->expenses) }} </p> <p><b>{{ ctrans('texts.gateways') }}:</b> {{ count($company->company_gateways) }} </p>
@endif @endif
@if(isset($company) && count($company->company_gateways) >=1) @if(isset($company) && count($company->client_gateway_tokens) >=1)
<p><b>{{ ctrans('texts.gateways') }}:</b> {{ count($company->company_gateways) }} </p> <p><b>{{ ctrans('texts.tokens') }}:</b> {{ count($company->client_gateway_tokens) }} </p>
@endif @endif
@if(isset($company) && count($company->client_gateway_tokens) >=1) @if(isset($company) && count($company->tax_rates) >=1)
<p><b>{{ ctrans('texts.tokens') }}:</b> {{ count($company->client_gateway_tokens) }} </p> <p><b>{{ ctrans('texts.tax_rates') }}:</b> {{ count($company->tax_rates) }} </p>
@endif @endif
@if(isset($company) && count($company->tax_rates) >=1) @if(isset($company) && count($company->documents) >=1)
<p><b>{{ ctrans('texts.tax_rates') }}:</b> {{ count($company->tax_rates) }} </p> <p><b>{{ ctrans('texts.documents') }}:</b> {{ count($company->documents) }} </p>
@endif @endif
@if(isset($company) && count($company->documents) >=1) @if($check_data)
<p><b>{{ ctrans('texts.documents') }}:</b> {{ count($company->documents) }} </p> <p><b>Data Quality:</b></p>
@endif <p> {!! $check_data !!} </p>
@endif
@if($check_data) @if(!empty($errors) )
<p><b>Data Quality:</b></p> <p>{{ ctrans('texts.errors') }}:</p>
<p> {!! $check_data !!} </p> <table>
@endif <thead>
<tr>
@if(!empty($errors) ) <th>Type</th>
<p>{{ ctrans('texts.errors') }}:</p> <th>Data</th>
<table> <th>Error</th>
<thead> </tr>
<tr> </thead>
<th>Type</th> <tbody>
<th>Data</th> @foreach($errors as $entityType=>$entityErrors)
<th>Error</th> @foreach($entityErrors as $error)
</tr> <tr>
</thead> <td>{{$entityType}}</td>
<tbody> <td>{{json_encode($error[$entityType]??null)}}</td>
@foreach($errors as $entityType=>$entityErrors) <td>{{json_encode($error['error'])}}</td>
@foreach($entityErrors as $error) </tr>
<tr> @endforeach
<td>{{$entityType}}</td>
<td>{{json_encode($error[$entityType]??null)}}</td>
<td>{{json_encode($error['error'])}}</td>
</tr>
@endforeach @endforeach
@endforeach </tbody>
</tbody> </table>
</table> @endif
@endif
<a href="{{ url('/') }}" target="_blank" class="button">{{ ctrans('texts.account_login')}}</a> <a href="{{ url('/') }}" target="_blank" class="button">{{ ctrans('texts.account_login')}}</a>
<p>{{ ctrans('texts.email_signature')}}<br/> {{ ctrans('texts.email_from') }}</p>
<p>{{ ctrans('texts.email_signature')}}<br/> {{ ctrans('texts.email_from') }}</p>
</div>
@endcomponent @endcomponent