diff --git a/app/Policies/UserPolicy.php b/app/Policies/UserPolicy.php index cc9a4fd..d2aaf13 100644 --- a/app/Policies/UserPolicy.php +++ b/app/Policies/UserPolicy.php @@ -26,7 +26,7 @@ class UserPolicy OR $user->isWholesaler() // The user is the reseller - OR $user->all_accounts()->pluck('id')->search($o->id); + OR $user->all_clients()->pluck('id')->search($o->id); } /** diff --git a/resources/views/theme/backend/adminlte/common/invoice/widget/history.blade.php b/resources/views/theme/backend/adminlte/common/invoice/widget/history.blade.php new file mode 100644 index 0000000..7e26cca --- /dev/null +++ b/resources/views/theme/backend/adminlte/common/invoice/widget/history.blade.php @@ -0,0 +1,59 @@ +
ID | +Date | +Amount | +
---|---|---|
{{ $io->id }} | +{{ $io->due_date ? $io->due_date->format('Y-m-d') : ' ' }} | +{{ number_format($io->total,2) }} | +
No payments recorded
+ @endif +{{ trans('adminlte_lang::message.home') }}
@@ -11,17 +11,17 @@Orders - +