wip
This commit is contained in:
1 parent
af512688bc
commit
a3d41770e7
3 files changed
+10
-15
No files matched your search
@@ -5,6 +5,7 @@
|
||||
use App\Nova\Resources\Order\Loan\Metrics\LoanOrderPerDay;
|
||||
use App\Nova\Resources\Order\Loan\Metrics\LoanOrderPerStatus;
|
||||
use App\Nova\Resources\Order\Loan\Metrics\NewLoanOrders;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Laravel\Nova\Dashboards\Main as Dashboard;
|
||||
|
||||
class Main extends Dashboard
|
||||
@@ -23,9 +24,15 @@ public function name(): string
|
||||
public function cards(): array
|
||||
{
|
||||
return [
|
||||
NewLoanOrders::make(),
|
||||
LoanOrderPerDay::make(),
|
||||
LoanOrderPerStatus::make(),
|
||||
NewLoanOrders::make()
|
||||
->canSee(fn () => Gate::allows('isAdmin', auth()->user()->isAdmin())),
|
||||
|
||||
LoanOrderPerDay::make()
|
||||
->canSee(fn () => Gate::allows('isAdmin', auth()->user()->isAdmin())),
|
||||
|
||||
LoanOrderPerStatus::make()
|
||||
->canSee(fn () => Gate::allows('isAdmin', auth()->user()->isAdmin())),
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user