ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.15.145.146 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/app/Http/Controllers/ |
Upload File : |
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; //use Illuminate\Http\Support\Facade\View; use App\Http\Requests; use DB; class TaxMatterDescription extends ParentController { public function displayTaxDescriptionForm() { $data['list']=DB::table('tax_matter_description')->get(); return view('tax_matter_description.add', $data); } public function addTaxDesc(Request $request){ $this->validate($request, [ 'description' => 'required', ]); $description = trim($request['description']); DB::table('tax_matter_description')->insertGetId(array( 'tax_description' => $description, )); return back()->with('success','Description successfully added!'); } public function deleteTaxDesc(Request $request) { $cid = trim($request['C_id']); if( DB::table('tblpaymentTransaction')->where('tax_report_description',$cid)->exists() ) { return back()->with('error','Cannot delete! Record is in used.'); } else { DB::table('tax_matter_description')->where('descriptionID',$cid)->delete(); return back()->with('success','Record deleted!'); } } public function updateTaxDesc(Request $request) { $descID = trim($request['descID']); $description = trim($request['description']); DB::table('tax_matter_description')->where('descriptionID',$descID)->update(['tax_description'=>$description]); return back()->with('success','Record updated!'); } public function disableTaxDesc($id) { DB::table('tax_matter_description')->where('descriptionID',$id)->update(['active'=>0]); return back()->with('success','Record disabled!'); } public function enableTaxDesc($id) { DB::table('tax_matter_description')->where('descriptionID',$id)->update(['active'=>1]); return back()->with('success','Record enabled!'); } }