visial update on notifications

This commit is contained in:
2025-05-09 22:26:18 +05:00
parent a789a5cefa
commit 7466166167
2 changed files with 11 additions and 6 deletions

View File

@@ -60,8 +60,13 @@ class LoanOrderRepo
);
}
public static function notifyUser(NovaRequest $request, Model $model, string $message, string $type = 'info'): void
{
public static function notifyUser(
NovaRequest $request,
Model $model,
string $message,
string $type = 'info',
string $icon = 'eye',
): void {
/** @var \App\Models\Order\Loan\LoanOrder */
$loanOrder = $model;
@@ -74,7 +79,7 @@ class LoanOrderRepo
NovaNotification::make()
->message($message.': '.$loanOrder->unique_id)
->action(__('See'), URL::remote($url))
->icon('cash')
->icon($icon)
->type($type)
);
}