From 8eaa382604413c6e54be96bffa068eb5f51e1b43 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 3 Feb 2019 11:51:49 +1100 Subject: [PATCH] Fixes for Google Maps (#2652) --- resources/views/clients/show.blade.php | 250 +++++++++---------------- 1 file changed, 93 insertions(+), 157 deletions(-) diff --git a/resources/views/clients/show.blade.php b/resources/views/clients/show.blade.php index 4482d3672ac7..74b14ea53b31 100644 --- a/resources/views/clients/show.blade.php +++ b/resources/views/clients/show.blade.php @@ -6,19 +6,6 @@ - @if ($client->showMap()) - - - - @endif @stop @@ -86,23 +73,23 @@ - @if ($client->last_login > 0) -

- {{ trans('texts.last_logged_in') }} {{ Utils::timestampToDateTimeString(strtotime($client->last_login)) }} -

- @endif + @if ($client->last_login > 0) +

+ {{ trans('texts.last_logged_in') }} {{ Utils::timestampToDateTimeString(strtotime($client->last_login)) }} +

+ @endif
-
+
-
-

{{ trans('texts.details') }}

+
+

{{ trans('texts.details') }}

@if ($client->id_number)

{{ trans('texts.id_number').': '.$client->id_number }}

@endif @if ($client->vat_number) -

{{ trans('texts.vat_number').': '.$client->vat_number }}

+

{{ trans('texts.vat_number').': '.$client->vat_number }}

@endif @if ($client->account->customLabel('client1') && $client->custom_value1) @@ -130,7 +117,7 @@

{!! nl2br(e($client->private_notes)) !!}

@endif - @if ($client->industry || $client->size) + @if ($client->industry || $client->size) @if ($client->industry) {{ $client->industry->name }} @endif @@ -142,8 +129,8 @@ @endif @endif - @if ($client->website) -

{!! Utils::formatWebsite($client->website) !!}

+ @if ($client->website) +

{!! Utils::formatWebsite($client->website) !!}

@endif @if ($client->language) @@ -160,10 +147,10 @@ • {{ trans('texts.is_not_sent_reminders') }}
@endif
-
+
-

{{ trans('texts.address') }}

+

{{ trans('texts.address') }}

@if ($client->addressesMatch()) {!! $client->present()->address(ADDRESS_BILLING) !!} @@ -174,8 +161,8 @@
-
-

{{ trans('texts.contacts') }}

+
+

{{ trans('texts.contacts') }}

@foreach ($client->contacts as $contact) @if ($contact->first_name || $contact->last_name) {{ $contact->first_name.' '.$contact->last_name }}
@@ -206,78 +193,81 @@ @endif
@endforeach -
+
-
-

{{ trans('texts.standing') }} - - - - - - - - - - @if ($credit > 0) - - - - - @endif -
{{ trans('texts.paid_to_date') }}{{ Utils::formatMoney($client->paid_to_date, $client->getCurrencyId()) }}
{{ trans('texts.balance') }}{{ Utils::formatMoney($client->balance, $client->getCurrencyId()) }}
{{ trans('texts.credit') }}{{ Utils::formatMoney($credit, $client->getCurrencyId()) }}
-

-
-
+
+

{{ trans('texts.standing') }} + + + + + + + + + + @if ($credit > 0) + + + + + @endif +
{{ trans('texts.paid_to_date') }}{{ Utils::formatMoney($client->paid_to_date, $client->getCurrencyId()) }}
{{ trans('texts.balance') }}{{ Utils::formatMoney($client->balance, $client->getCurrencyId()) }}
{{ trans('texts.credit') }}{{ Utils::formatMoney($credit, $client->getCurrencyId()) }}
+

+
+
@if ($client->showMap()) -
-
+ + + @endif -
-
+
- {!! Datatable::table() - ->addColumn( - trans('texts.date'), - trans('texts.message'), - trans('texts.balance'), - trans('texts.adjustment')) - ->setUrl(url('api/activities/'. $client->public_id)) + {!! Datatable::table() + ->addColumn( + trans('texts.date'), + trans('texts.message'), + trans('texts.balance'), + trans('texts.adjustment')) + ->setUrl(url('api/activities/'. $client->public_id)) ->setCustomValues('entityType', 'activity') ->setCustomValues('clientId', $client->public_id) ->setCustomValues('rightAlign', [2, 3]) - ->setOptions('sPaginationType', 'bootstrap') - ->setOptions('bFilter', false) - ->setOptions('aaSorting', [['0', 'desc']]) - ->render('datatable') !!} + ->setOptions('sPaginationType', 'bootstrap') + ->setOptions('bFilter', false) + ->setOptions('aaSorting', [['0', 'desc']]) + ->render('datatable') !!}
@if ($hasTasks) @@ -323,18 +313,8 @@ ])
@endif - @if ($hasRecurringQuotes) -
- @include('list', [ - 'entityType' => ENTITY_RECURRING_QUOTE, - 'datatable' => new \App\Ninja\Datatables\RecurringInvoiceDatatable(true, true), - 'clientId' => $client->public_id, - 'url' => url('api/recurring_quotes/' . $client->public_id), - ]) -
- @endif -
+
@include('list', [ 'entityType' => ENTITY_INVOICE, 'datatable' => new \App\Ninja\Datatables\InvoiceDatatable(true, true), @@ -390,17 +370,17 @@
- + @stop