parent
4911f6799d
commit
0d45fc287b
@ -186,13 +186,13 @@ class AwardController extends Controller
|
|||||||
{
|
{
|
||||||
$award = $this->awardRepository->findWithoutFail($id);
|
$award = $this->awardRepository->findWithoutFail($id);
|
||||||
if (empty($award)) {
|
if (empty($award)) {
|
||||||
Flash::error('Fare not found');
|
Flash::error('Award not found');
|
||||||
|
|
||||||
return redirect(route('admin.awards.index'));
|
return redirect(route('admin.awards.index'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->awardRepository->delete($id);
|
$this->awardRepository->delete($id);
|
||||||
Flash::success('Fare deleted successfully.');
|
Flash::success('Award deleted successfully.');
|
||||||
|
|
||||||
return redirect(route('admin.awards.index'));
|
return redirect(route('admin.awards.index'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user