Fonts, Travel Program
This commit is contained in:
parent
93d1bea8e3
commit
561c5875a7
173 changed files with 12359 additions and 1070 deletions
102
app/Http/Controllers/SyS/ContentLinkController.php
Executable file
102
app/Http/Controllers/SyS/ContentLinkController.php
Executable file
|
|
@ -0,0 +1,102 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\SyS\Tools;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Booking;
|
||||
use App\Models\IQContentSite;
|
||||
use App\Models\IQContentSiteField;
|
||||
use App\Models\IQContentTree;
|
||||
use App\Models\IQContentTreeNode;
|
||||
use App\Models\TravelCountry;
|
||||
use App\Models\TravelGuide;
|
||||
use App\Models\TravelNationality;
|
||||
use App\Models\TravelBooking;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use IqContent\LaravelFilemanager\Controllers\FileController;
|
||||
use IqContent\LaravelFilemanager\Controllers\FolderController;
|
||||
use IqContent\LaravelFilemanager\Models\IQContentFile;
|
||||
use Request;
|
||||
use Validator;
|
||||
|
||||
class SysController extends Controller
|
||||
{
|
||||
|
||||
private $tree = [];
|
||||
/**
|
||||
* ContentSiteController constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware(['sysadmin', '2fa']);
|
||||
}
|
||||
|
||||
public function filterHTML(){
|
||||
|
||||
}
|
||||
//content_links
|
||||
public function calcu()
|
||||
{
|
||||
|
||||
/*$query = Booking::with('booking_draft_items')->select('booking.*')->where('new_drafts', true);
|
||||
|
||||
$query->whereHas('booking_draft_items', function ($q) {
|
||||
$q->where('comfort', true);
|
||||
});
|
||||
$bookings = $query->get();
|
||||
foreach ($bookings as $booking){
|
||||
$booking->comfort = true;
|
||||
$booking->save();
|
||||
}
|
||||
*/
|
||||
|
||||
$bookings = Booking::orderBy('id', 'DESC')->offset(0)->limit(1000)->get();
|
||||
|
||||
|
||||
|
||||
|
||||
// dd("nothing");
|
||||
$val = [];
|
||||
$text = "";
|
||||
|
||||
$data = [
|
||||
'text' => $text,
|
||||
'bookings' => $bookings,
|
||||
];
|
||||
return view('sys.tools.links', $data);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
clean code
|
||||
$travelGuides = TravelGuide::all();
|
||||
foreach ($travelGuides as $travelGuide){
|
||||
if(strpos($travelGuide->full_text, "<h1><br></h1>") !== false){
|
||||
$val[$travelGuide->id] = "<h1><br></h1>";
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($travelGuides as $travelGuide){
|
||||
if(strpos($travelGuide->full_text, "<h1") !== false){
|
||||
$val[$travelGuide->id] = "<h1";
|
||||
}
|
||||
}
|
||||
|
||||
$travelGuide = TravelGuide::find(203);
|
||||
$text = $travelGuide->full_text;
|
||||
|
||||
// $new_text = preg_replace('/<h1[^>]*>([\s\S]*?)<\/h1[^>]*>/', '', $TravelGuide->full_text);
|
||||
|
||||
*/
|
||||
|
||||
public function calcuStore()
|
||||
{
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue