@@ -405,12 +405,12 @@ public function createRecord(): void
405405 ]);
406406
407407 Notification::make ()
408- ->title (' Card created' )
408+ ->title (__ ( ' :Record created successfully ' , [ ' record ' => $ this -> config -> getSingularCardLabel ()]) )
409409 ->success ()
410410 ->send ();
411411 } else {
412412 Notification::make ()
413- ->title ('Failed to create card ' )
413+ ->title ('Failed to create record ' )
414414 ->danger ()
415415 ->send ();
416416 }
@@ -439,7 +439,7 @@ public function updateRecord(): void
439439
440440 if (! $ record ) {
441441 Notification::make ()
442- ->title (' Card not found ' )
442+ ->title (__ ( ' :Record not found ', [ ' record ' => $ this -> config -> getSingularCardLabel ()]) )
443443 ->danger ()
444444 ->send ();
445445
@@ -457,12 +457,12 @@ public function updateRecord(): void
457457 ]);
458458
459459 Notification::make ()
460- ->title (' Card updated' )
460+ ->title (__ ( ' :Record updated successfully ' , [ ' record ' => $ this -> config -> getSingularCardLabel ()]) )
461461 ->success ()
462462 ->send ();
463463 } else {
464464 Notification::make ()
465- ->title (' Failed to update card ' )
465+ ->title (__ ( ' :Record update failed ' , [ ' record ' => $ this -> config -> getSingularCardLabel ()]) )
466466 ->danger ()
467467 ->send ();
468468 }
@@ -499,7 +499,7 @@ public function deleteRecord(): void
499499 {
500500 if (! $ this ->permissions ['canDelete ' ]) {
501501 Notification::make ()
502- ->title ('You do not have permission to delete records ' )
502+ ->title (__ ( 'You do not have permission to delete : records ' , [ ' records ' => $ this -> config -> getPluralCardLabel ()]) )
503503 ->danger ()
504504 ->send ();
505505
@@ -527,7 +527,7 @@ public function deleteRecord(): void
527527 ]);
528528
529529 Notification::make ()
530- ->title (' Record deleted ' )
530+ ->title (__ ( ' : Record deleted successfully ' , [ ' record ' => $ this -> config -> getSingularCardLabel ()]) )
531531 ->success ()
532532 ->send ();
533533 } else {
0 commit comments