diff --git a/app/Http/Controllers/Customers/Payments.php b/app/Http/Controllers/Customers/Payments.php
index c1b9c571b..f908a29e4 100644
--- a/app/Http/Controllers/Customers/Payments.php
+++ b/app/Http/Controllers/Customers/Payments.php
@@ -21,7 +21,7 @@ class Payments extends Controller
*/
public function index()
{
- $payments = Payment::with('account', 'category')->where('customer_id', '=', Auth::user()->customer->id)->paginate();
+ $payments = Payment::with(['account', 'category'])->where('customer_id', '=', Auth::user()->customer->id)->paginate();
$payment_methods = Modules::getPaymentMethods();
diff --git a/resources/views/customers/dashboard/index.blade.php b/resources/views/customers/dashboard/index.blade.php
index 677120ab2..35c82402b 100644
--- a/resources/views/customers/dashboard/index.blade.php
+++ b/resources/views/customers/dashboard/index.blade.php
@@ -18,29 +18,24 @@
@if ($user->invoices->count())
-
+
- {{ trans('invoices.invoice_number') }} |
- {{ trans_choice('general.customers', 1) }} |
- {{ trans('invoices.total_price') }} |
- {{ trans_choice('general.statuses', 1) }} |
- {{ trans('invoices.invoice_date') }} |
- {{ trans('general.actions') }} |
+ {{ trans('invoices.invoice_number') }} |
+ {{ trans('general.amount') }} |
+ {{ trans('invoices.invoice_date') }} |
+ {{ trans('invoices.due_date') }} |
+ {{ trans_choice('general.statuses', 1) }} |
@foreach($user->invoices as $item)
- {{ $item->invoice_number }} |
- {{ $item->customer_name }} |
- @money($item->amount, $item->currency_code, true) |
- {{ $item->status->name }} |
- {{ Date::parse($item->invoiced_at)->format($date_format) }} |
-
- {{ trans('general.show') }}
- {{ trans('general.edit') }}
- |
+ {{ $item->invoice_number }} |
+ @money($item->amount, $item->currency_code, true) |
+ {{ Date::parse($item->invoiced_at)->format($date_format) }} |
+ {{ Date::parse($item->due_at)->format($date_format) }} |
+ {{ $item->status->name }} |
@endforeach
@@ -68,26 +63,22 @@
@if ($user->revenues->count())
-
+
{{ trans('general.date') }} |
{{ trans('general.amount') }} |
{{ trans_choice('general.categories', 1) }} |
{{ trans_choice('general.accounts', 1) }} |
- {{ trans('general.actions') }} |
@foreach($user->revenues as $item)
- {{ Date::parse($item->paid_at)->format($date_format) }} |
+ {{ Date::parse($item->paid_at)->format($date_format) }} |
@money($item->amount, $item->currency_code, true) |
{{ $item->category->name }} |
{{ $item->account->name }} |
-
- {{ trans('general.show') }}
- |
@endforeach
diff --git a/resources/views/customers/invoices/index.blade.php b/resources/views/customers/invoices/index.blade.php
index eee259836..5258e4941 100644
--- a/resources/views/customers/invoices/index.blade.php
+++ b/resources/views/customers/invoices/index.blade.php
@@ -11,16 +11,16 @@
@section('content')
-