Google2Fa ready to upload
This commit is contained in:
parent
e3495be8b8
commit
73e38a006e
127 changed files with 2637 additions and 589 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Http\Controllers;
|
||||
|
||||
use Request;
|
||||
use App\Models\CMSContent;
|
||||
use App\Models\GeneralFile;
|
||||
use App\Models\IQContentSite;
|
||||
use App\Models\TravelCountry;
|
||||
|
|
@ -19,7 +20,7 @@ class ModalController extends Controller
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
$this->middleware(['admin', '2fa']);
|
||||
}
|
||||
|
||||
public function load(){
|
||||
|
|
@ -104,6 +105,17 @@ class ModalController extends Controller
|
|||
$ret = view("admin.modal.iq_travel_program-item", compact('data', 'value'))->render();
|
||||
}
|
||||
|
||||
if($data['action'] === 'modal-cms_booking_content_edit'){
|
||||
if($data['id'] === 'new'){
|
||||
$value = new CMSContent();
|
||||
}else{
|
||||
$value = CMSContent::find($data['id']);
|
||||
}
|
||||
$ret = view("admin.modal.cms_booking_content_edit", compact('data', 'value'))->render();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
return response()->json(['response' => $data, 'html'=>$ret, 'status'=>$status]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue