Bugs Fix and Update

This commit is contained in:
Izuddin
2022-09-28 22:36:33 +07:00
parent 009002a5e5
commit 1447dfd7d9
3 changed files with 9 additions and 9 deletions
@@ -18,7 +18,7 @@ use Illuminate\Support\Facades\File;
class RealisasiPendapatanController extends Controller
{
public function __construct(){
$this->siteTitle = "DBH Realisasi Pendapatan";
$this->siteTitle = "Realisasi Pendapatan";
parent::__construct();
$this->setIconTitle("fa fa-reply");
}
@@ -155,12 +155,12 @@ class RealisasiPendapatanController extends Controller
DB::beginTransaction();
$realisasi_pendapatan->delete();
DB::commit();
return redirect(URL::to("/realisasi-pendapatan.index"))->with('success','Data Realisasi Pendapatan berhasil dihapus!');
return redirect(URL::to("/realisasi-pendapatan"))->with('success','Data Realisasi Pendapatan berhasil dihapus!');
}catch(Throwable $e){
DB::rollBack();
return redirect(URL::to("/realisasi-pendapatan.index"))->with('error','Data Realisasi Pendapatan gagal dihapus.');
return redirect(URL::to("/realisasi-pendapatan"))->with('error','Data Realisasi Pendapatan gagal dihapus.');
}
}