����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.118.253.134 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/gle.gltechlimited.com/app/Http/Controllers/ |
Upload File : |
<?php namespace App\Http\Controllers; use App\AppUiShorting; use Illuminate\Http\Request; use Illuminate\Support\Str; use Jackiedo\DotenvEditor\Facades\DotenvEditor; class AppUiShortigController extends Controller { public function index(Request $request) { $appUiShorting = AppUiShorting::select('id', 'name','position','is_active')->OrderBy('position', 'ASC')->get(); // echo $appUiShorting; if ($request->ajax()) { return DataTables::of($appUiShorting) ->setRowAttr([ 'data-id' => function($row) { return $row->id; }, ]) ->setRowClass('row1 sortable') ->make(true); } return view('admin.appUiShorting.index', compact('appUiShorting')); } public function appmenustatus(Request $request, $id) { $asu = AppUiShorting::findOrFail($id); $asu->is_active = $request->is_active; $asu->save(); if ($request->is_active == 1) { return back()->with('success', __('Status has been to active!')); } else { return back()->with('success',__('Status has been to deactive!')); } } public function update(Request $request, $id) { if (env('DEMO_LOCK') == 1) { return back()->with('deleted', __('This action is disabled in the demo !')); } $appUiShorting = AppUiShorting::findOrFail($id); $input = $request->all(); $appUiShorting->update([ 'is_active' => $input['is_active'], ]); return back()->with('success', __('App Ui Shorting Setting has been updated')); } public function reposition(Request $request) { if (env('DEMO_LOCK') == 1) { return back()->with('deleted', __('This action is disabled in the demo !')); } if($request->ajax()){ $posts = AppUiShorting::all(); foreach ($posts as $post) { foreach ($request->order as $order) { if ($order['id'] == $post->id) { \DB::table('app_ui_shortings')->where('id',$post->id)->update(['position' => $order['position']]); } } } return response()->json('success Successfully.', 200); } } //full_detail_table //app_ui_reposition }