����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.116.81.41 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 Illuminate\Http\Request; use App\Movie; use App\MovieComment; use App\MovieSubcomment; use App\TvSeries; class QuickUpdateController extends Controller { public function __construct() { $this->middleware('permission:movies.edit', ['only' => ['change']]); $this->middleware('permission:tvseries.edit', ['only' => ['changetvstatus']]); $this->middleware('permission:comment-settings.comments', ['only' => ['commentchange']]); $this->middleware('permission:comment-settings.subcomments', ['only' => ['subcomentchange']]); } public function change($id) { if (env('DEMO_LOCK') == 1) { return back()->with('deleted', __('This action is disabled in the demo !')); } $movie = Movie::findorfail($id); if($movie->status == 1) { $movie->status = 0; } else { $movie->status = 1; } $movie->save(); return back()->with('success', __('Movie Status changed !')); } public function changetvstatus($id) { if (env('DEMO_LOCK') == 1) { return back()->with('deleted', __('This action is disabled in the demo !')); } $tv = TvSeries::findorfail($id); if ($tv->status == 1) { $tv->status = 0; } else { $tv->status = 1; } $tv->save(); return back()->with('success', __('TvSeries Status changed !')); } public function commentchange($id) { if (env('DEMO_LOCK') == 1) { return back()->with('deleted', __('This action is disabled in the demo !')); } $comment = MovieComment::findorfail($id); if ($comment->status == 1) { $comment->status = 0; } else { $comment->status = 1; } $comment->save(); return back()->with('success', __('Comment Status changed !')); } public function subcommentchange($id) { if (env('DEMO_LOCK') == 1) { return back()->with('deleted', __('This action is disabled in the demo !')); } $comment = MovieSubcomment::findorfail($id); if ($comment->status == 1) { $comment->status = 0; } else { $comment->status = 1; } $comment->save(); return back()->with('success', __('SubComment Status changed !')); } }