web change component
|
|
@ -47,6 +47,7 @@ class MenuCrudController extends CrudController
|
|||
['name' => 'name', 'type' => 'text', 'label' => 'Name'],
|
||||
['name' => 'url', 'type' => 'text', 'label' => 'URL'],
|
||||
['name' => 'menu_type', 'type' => 'enum', 'label' => 'Menu Type'],
|
||||
['name' => 'details', 'type' => 'table', 'label' => 'Details', 'columns' => ['section' => 'Section']],
|
||||
]);
|
||||
// add asterisk for fields that are required in MenuRequest
|
||||
$this->crud->setRequiredFields(StoreRequest::class, 'create');
|
||||
|
|
|
|||
|
|
@ -5,16 +5,16 @@ namespace App\Http\Controllers\Admin;
|
|||
use Backpack\CRUD\app\Http\Controllers\CrudController;
|
||||
|
||||
// VALIDATION: change the requests to match your own file names if you need form validation
|
||||
use App\Http\Requests\DescriptionRequest as StoreRequest;
|
||||
use App\Http\Requests\DescriptionRequest as UpdateRequest;
|
||||
use App\Http\Requests\PageRequest as StoreRequest;
|
||||
use App\Http\Requests\PageRequest as UpdateRequest;
|
||||
use Backpack\CRUD\CrudPanel;
|
||||
|
||||
/**
|
||||
* Class DescriptionCrudController
|
||||
* Class PageCrudController
|
||||
* @package App\Http\Controllers\Admin
|
||||
* @property-read CrudPanel $crud
|
||||
*/
|
||||
class DescriptionCrudController extends CrudController
|
||||
class PageCrudController extends CrudController
|
||||
{
|
||||
public function setup()
|
||||
{
|
||||
|
|
@ -23,9 +23,9 @@ class DescriptionCrudController extends CrudController
|
|||
| CrudPanel Basic Information
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
$this->crud->setModel('App\Models\Description');
|
||||
$this->crud->setRoute(config('backpack.base.route_prefix') . '/description');
|
||||
$this->crud->setEntityNameStrings('description', 'descriptions');
|
||||
$this->crud->setModel('App\Models\Page');
|
||||
$this->crud->setRoute(config('backpack.base.route_prefix') . '/page');
|
||||
$this->crud->setEntityNameStrings('page', 'pages');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
@ -34,25 +34,40 @@ class DescriptionCrudController extends CrudController
|
|||
*/
|
||||
|
||||
// TODO: remove setFromDb() and manually define Fields and Columns
|
||||
//$this->crud->setFromDb();
|
||||
//$this->crud->setFromDb();
|
||||
|
||||
$this->crud->addColumns([
|
||||
['name' => 'header','type' => 'text', 'lable' => 'Header'],
|
||||
$this->crud->addColumns([
|
||||
['name' => 'title','type' => 'text', 'lable' => 'Title'],
|
||||
['name' => 'keywords','type' => 'text', 'lable' => 'Keywords'],
|
||||
['name' => 'meta_description','type' => 'text', 'lable' => 'Meta description'],
|
||||
['name' => 'description','type' => 'text', 'lable' => 'Description'],
|
||||
['name' => 'menu_id', 'type' => 'select', 'entity' => 'menu', 'attribute' =>'name', 'model' => 'App\Models\Menu',
|
||||
'lable'=>'Menu'],
|
||||
|
||||
]);
|
||||
|
||||
$this->crud->addFields([
|
||||
['name' => 'header','type' => 'text', 'lable' => 'Header'],
|
||||
['name' => 'title','type' => 'text', 'lable' => 'Title'],
|
||||
['name' => 'keywords','type' => 'text', 'lable' => 'Keywords'],
|
||||
['name' => 'meta_description','type' => 'text', 'lable' => 'Meta description'],
|
||||
['name' => 'description','type' => 'summernote', 'lable' => 'Description'],
|
||||
['name' => 'menu_id', 'type' => 'select', 'entity' => 'menu', 'attribute' =>'name', 'model' => 'App\Models\Menu',
|
||||
'lable'=>'Menu'],
|
||||
// [ // Select2Multiple = n-n relationship (with pivot table)
|
||||
// 'label' => "Slider",
|
||||
// 'type' => 'select2_multiple',
|
||||
// 'name' => 'sliders', // the method that defines the relationship in your Model
|
||||
// 'entity' => 'sliders', // the method that defines the relationship in your Model
|
||||
// 'attribute' => 'page_id', // foreign key attribute that is shown to user
|
||||
// 'model' => "App\Models\Slider", // foreign key model
|
||||
// 'pivot' => false, // on create&update, do you need to add/delete pivot table entries?
|
||||
// // 'select_all' => true, // show Select All and Clear buttons?
|
||||
|
||||
// ]
|
||||
|
||||
]);
|
||||
|
||||
// add asterisk for fields that are required in DescriptionRequest
|
||||
// add asterisk for fields that are required in PageRequest
|
||||
$this->crud->setRequiredFields(StoreRequest::class, 'create');
|
||||
$this->crud->setRequiredFields(UpdateRequest::class, 'edit');
|
||||
}
|
||||
|
|
@ -37,12 +37,16 @@ class PageadCrudController extends CrudController
|
|||
//$this->crud->setFromDb();
|
||||
|
||||
$this->crud->addColumns([
|
||||
['name' => 'page_id', 'type' => 'select', 'entity' => 'page', 'attribute' =>'title', 'model' => 'App\Models\Page',
|
||||
'lable'=>'Page'],
|
||||
['name' => 'name','type' => 'text', 'lable' => 'Name'],
|
||||
['name' => 'adv_type', 'type' => 'enum', 'label' => 'Adv Type'],
|
||||
['name' => 'img_url','type' => 'text', 'lable' => 'Image'],
|
||||
]);
|
||||
|
||||
$this->crud->addFields([
|
||||
['name' => 'page_id', 'type' => 'select', 'entity' => 'page', 'attribute' =>'title', 'model' => 'App\Models\Page',
|
||||
'lable'=>'Page'],
|
||||
['name' => 'name','type' => 'text', 'lable' => 'Name'],
|
||||
['name' => 'adv_type', 'type' => 'enum', 'label' => 'Adv Type'],
|
||||
[ 'label' => "Image",
|
||||
|
|
|
|||
|
|
@ -5,16 +5,16 @@ namespace App\Http\Controllers\Admin;
|
|||
use Backpack\CRUD\app\Http\Controllers\CrudController;
|
||||
|
||||
// VALIDATION: change the requests to match your own file names if you need form validation
|
||||
use App\Http\Requests\PageSliderRequest as StoreRequest;
|
||||
use App\Http\Requests\PageSliderRequest as UpdateRequest;
|
||||
use App\Http\Requests\ProgrammeRequest as StoreRequest;
|
||||
use App\Http\Requests\ProgrammeRequest as UpdateRequest;
|
||||
use Backpack\CRUD\CrudPanel;
|
||||
|
||||
/**
|
||||
* Class PageSliderCrudController
|
||||
* Class ProgrammeCrudController
|
||||
* @package App\Http\Controllers\Admin
|
||||
* @property-read CrudPanel $crud
|
||||
*/
|
||||
class PageSliderCrudController extends CrudController
|
||||
class ProgrammeCrudController extends CrudController
|
||||
{
|
||||
public function setup()
|
||||
{
|
||||
|
|
@ -23,9 +23,9 @@ class PageSliderCrudController extends CrudController
|
|||
| CrudPanel Basic Information
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
$this->crud->setModel('App\Models\PageSlider');
|
||||
$this->crud->setRoute(config('backpack.base.route_prefix') . '/pageslider');
|
||||
$this->crud->setEntityNameStrings('pageslider', 'page_sliders');
|
||||
$this->crud->setModel('App\Models\Programme');
|
||||
$this->crud->setRoute(config('backpack.base.route_prefix') . '/programme');
|
||||
$this->crud->setEntityNameStrings('programme', 'programmes');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
@ -35,24 +35,28 @@ class PageSliderCrudController extends CrudController
|
|||
|
||||
// TODO: remove setFromDb() and manually define Fields and Columns
|
||||
//$this->crud->setFromDb();
|
||||
|
||||
$this->crud->addColumns([
|
||||
['name' => 'alt','type' => 'text', 'lable' => 'Alt'],
|
||||
['name' => 'img_url','type' => 'text', 'lable' => 'Img Url'],
|
||||
['name' => 'menu_id', 'type' => 'select', 'entity' => 'menu', 'attribute' =>'name', 'model' => 'App\Models\Menu',
|
||||
'lable'=>'Menu'],
|
||||
['name' => 'page_id', 'type' => 'select', 'entity' => 'page', 'attribute' =>'title', 'model' => 'App\Models\Page',
|
||||
'lable'=>'Page'],
|
||||
['name' => 'name','type' => 'text', 'lable' => 'Name'],
|
||||
|
||||
]);
|
||||
|
||||
$this->crud->addFields([
|
||||
['name' => 'alt','type' => 'text', 'lable' => 'Alt'],
|
||||
['name' => 'img_url','type' => 'browse', 'lable' => 'Img Url'],
|
||||
['name' => 'menu_id', 'type' => 'select', 'entity' => 'menu', 'attribute' =>'name', 'model' => 'App\Models\Menu',
|
||||
'lable'=>'Menu'],
|
||||
['name' => 'page_id', 'type' => 'select', 'entity' => 'page', 'attribute' =>'title', 'model' => 'App\Models\Page',
|
||||
'lable'=>'Page'],
|
||||
['name' => 'name','type' => 'text', 'lable' => 'Name'],
|
||||
['name' => 'altyn','type' => 'summernote', 'lable' => 'Altyn Asyr'],
|
||||
['name' => 'yashlyk','type' => 'summernote', 'lable' => 'Yashlyk'],
|
||||
['name' => 'miras','type' => 'summernote', 'lable' => 'Miras'],
|
||||
['name' => 'turkmenistan','type' => 'summernote', 'lable' => 'Turkmenistan'],
|
||||
['name' => 'owaz', 'type' => 'summernote', 'lable' => 'Turkmen Owazy'],
|
||||
['name' => 'sport','type' => 'summernote', 'lable' => 'Turkmen Sport'],
|
||||
|
||||
|
||||
]);
|
||||
// add asterisk for fields that are required in PageSliderRequest
|
||||
|
||||
// add asterisk for fields that are required in ProgrammeRequest
|
||||
$this->crud->setRequiredFields(StoreRequest::class, 'create');
|
||||
$this->crud->setRequiredFields(UpdateRequest::class, 'edit');
|
||||
}
|
||||
|
|
@ -36,7 +36,8 @@ class ShowCrudController extends CrudController
|
|||
// TODO: remove setFromDb() and manually define Fields and Columns
|
||||
//$this->crud->setFromDb();
|
||||
$this->crud->addColumns([
|
||||
['name' => 'replace_type', 'type' => 'enum', 'label' => 'Category'],
|
||||
['name' => 'page_id', 'type' => 'select', 'entity' => 'page', 'attribute' =>'title', 'model' => 'App\Models\Page',
|
||||
'lable'=>'Page'],
|
||||
['name' => 'alt','type' => 'text', 'lable' => 'Alt'],
|
||||
['name' => 'name','type' => 'text', 'lable' => 'Name'],
|
||||
['name' => 'view','type' => 'number', 'lable' => 'View'],
|
||||
|
|
@ -44,7 +45,8 @@ class ShowCrudController extends CrudController
|
|||
]);
|
||||
|
||||
$this->crud->addFields([
|
||||
['name' => 'replace_type', 'type' => 'enum', 'label' => 'Category'],
|
||||
['name' => 'page_id', 'type' => 'select', 'entity' => 'page', 'attribute' =>'title', 'model' => 'App\Models\Page',
|
||||
'lable'=>'Page'],
|
||||
[ // image
|
||||
|
||||
'label' => "Material Image",
|
||||
|
|
@ -61,6 +63,7 @@ class ShowCrudController extends CrudController
|
|||
['name' => 'video_url','type' => 'browse', 'lable' => 'Video'],
|
||||
['name' => 'view','type' => 'number', 'lable' => 'View'],
|
||||
['name' => 'description','type' => 'summernote', 'lable' => 'Text'],
|
||||
['name' => 'home','type' => 'checkbox', 'lable' => 'Home'],
|
||||
|
||||
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -37,20 +37,22 @@ class SliderCrudController extends CrudController
|
|||
//$this->crud->setFromDb();
|
||||
|
||||
$this->crud->addColumns([
|
||||
['name' => 'page_id', 'type' => 'select', 'entity' => 'page', 'attribute' =>'title', 'model' => 'App\Models\Page',
|
||||
'lable'=>'Page'],
|
||||
['name' => 'home','type' => 'boolean', 'lable' => 'Home'],
|
||||
['name' => 'img_url','type' => 'text', 'lable' => 'Image'],
|
||||
['name' => 'alt','type' => 'text', 'lable' => 'Alt'],
|
||||
['name' => 'url','type' => 'text', 'lable' => 'URL'],
|
||||
['name' => 'text','type' => 'text', 'lable' => 'Text'],
|
||||
|
||||
|
||||
]);
|
||||
|
||||
$this->crud->addFields([
|
||||
['name' => 'page_id', 'type' => 'select', 'entity' => 'page', 'attribute' =>'title', 'model' => 'App\Models\Page',
|
||||
'lable'=>'Page'],
|
||||
['name' => 'img_url','type' => 'browse', 'lable' => 'Image'],
|
||||
['name' => 'alt','type' => 'text', 'lable' => 'Alt'],
|
||||
['name' => 'url','type' => 'text', 'lable' => 'URL'],
|
||||
['name' => 'text','type' => 'text', 'lable' => 'Text'],
|
||||
|
||||
|
||||
['name' => 'home','type' => 'checkbox', 'lable' => 'Home'],
|
||||
|
||||
|
||||
]);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ use App\Models\PageSlider;
|
|||
use App\Models\Description;
|
||||
use App\Models\Advertisement;
|
||||
use App\Models\Pagead;
|
||||
use App\Models\Page;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cookie;
|
||||
|
|
@ -49,15 +50,18 @@ class HomeController extends Controller
|
|||
|
||||
|
||||
public function indexWeb(){
|
||||
|
||||
$sliders = Slider::get();
|
||||
$sliders = Slider::where('home', 1)->get();
|
||||
$news = News::take(4)->orderBy('created_at', 'DESC')->get();
|
||||
$shows = Show::orderBy('created_at', 'DESC')
|
||||
$shows = Show::where('home', 1)->orderBy('created_at', 'DESC')
|
||||
->take(11)
|
||||
->get();
|
||||
$showTop2 = $shows->where('replace_type', 'homeShows')->take(2);
|
||||
$showTop3 = $shows->where('replace_type', 'homeShows')->skip(2)->take(3);
|
||||
$bestShows = $shows->where('replace_type','bestShowsHome');
|
||||
$showTop2 = $shows->take(2);
|
||||
$shows->shift();
|
||||
$shows->shift();
|
||||
$showTop3 = $shows->take(3);
|
||||
$shows->shift();
|
||||
$shows->shift();
|
||||
$shows->shift();
|
||||
$adverts = Advertisement::distinct('adv_type')->get();
|
||||
$advertTop = $adverts->where('adv_type', 'top')->first();
|
||||
$advertMiddle = $adverts->where('adv_type', 'middle')->first();
|
||||
|
|
@ -66,35 +70,56 @@ class HomeController extends Controller
|
|||
'sliders' => $sliders,
|
||||
'news' => $news,
|
||||
'showTop3' => $showTop3,
|
||||
'bestShows' => $bestShows,
|
||||
'bestShows' => $shows,
|
||||
'advertTop' => $advertTop,
|
||||
'advertMiddle' => $advertMiddle,
|
||||
'advertBottom' => $advertBottom,
|
||||
'showTop2' => $showTop2
|
||||
'showTop2' => $showTop2,
|
||||
'title' => 'Turkmen Tv',
|
||||
'keywords' => 'Turkmen Tv',
|
||||
'meta_description' => 'Turkmen Tv',
|
||||
]);
|
||||
}
|
||||
|
||||
public function newsList(){
|
||||
$news = News::orderBy('created_at', 'DESC')->paginate(7);
|
||||
$main = $news->shift();
|
||||
return view('web.newsList')->with([
|
||||
'news' => $news,
|
||||
'main' => $main,
|
||||
'title' => 'Habarlar',
|
||||
'keywords' => 'Turkmen Tv Habarlar',
|
||||
'meta_description' => 'Turkmen Tv Habarlar',
|
||||
]);
|
||||
}
|
||||
|
||||
public function getNews($newsId){
|
||||
$news = News::findOrFail($newsId);
|
||||
$newsMenu = News::orderBy('created_at', 'DESC')->take(6)->get();
|
||||
return view('web.getNews')->with([
|
||||
'news' => $news,
|
||||
'newsMenu' => $newsMenu,
|
||||
'title' => $news->name,
|
||||
'keywords' => $news->name,
|
||||
'meta_description' => $news->name,
|
||||
]);
|
||||
}
|
||||
|
||||
public function menuLinkWeb($menu_id){
|
||||
$pageSliders = PageSlider::where('menu_id', $menu_id)->get();
|
||||
$descriptions = Description::where('menu_id', $menu_id)->firstOrFail();
|
||||
$news = News::take(7)->get();
|
||||
$news1 = $news->first();
|
||||
$news2 = $news->skip(1)->take(6);
|
||||
$bestShows = Show::where('replace_type','bestShowsHome')->get();
|
||||
$tmFilms = Show::where('replace_type','tmFilm')->get();
|
||||
$animations = Show::where('replace_type','animations')->get();
|
||||
$pageNames = Menu::where('id', $menu_id)->firstOrFail();
|
||||
$pageAds = Pagead::get();
|
||||
$page = Page::where('menu_id', $menu_id)->firstOrFail();
|
||||
$pageSliders = $page->sliders;
|
||||
$shows = $page->shows;
|
||||
$advs = $page->pageads;
|
||||
$programmes = $page->programmes;
|
||||
return view('web.pageWeb')->with([
|
||||
'page' => $page,
|
||||
'pageSliders' => $pageSliders,
|
||||
'pageNames' => $pageNames,
|
||||
'descriptions' => $descriptions,
|
||||
'pageAds' => $pageAds,
|
||||
'tmFilms' => $tmFilms,
|
||||
'animations' => $animations,
|
||||
'news1' => $news1,
|
||||
'news2' => $news2,
|
||||
'bestShows' => $bestShows
|
||||
'shows' => $shows,
|
||||
'advs' => $advs,
|
||||
'programmes' => $programmes,
|
||||
'title' => $page->titile,
|
||||
'keywords' => $page->keywords,
|
||||
'meta_description' => $page->meta_description,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class PageRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
// only allow updates if the user is logged in
|
||||
return backpack_auth()->check();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
// 'name' => 'required|min:5|max:255'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation attributes that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function attributes()
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation messages that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function messages()
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ProgrammeRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
// only allow updates if the user is logged in
|
||||
return backpack_auth()->check();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
// 'name' => 'required|min:5|max:255'
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation attributes that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function attributes()
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation messages that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function messages()
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -34,13 +34,10 @@ class Menu extends Model
|
|||
| RELATIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
public function pagesliders(){
|
||||
return $this->hasMany(PageSlider::class);
|
||||
public function pages(){
|
||||
return $this->hasOne(PageSlider::class);
|
||||
}
|
||||
|
||||
public function descriptions(){
|
||||
return $this->hasMany(Description::class);
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SCOPES
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ namespace App\Models;
|
|||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Backpack\CRUD\CrudTrait;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class News extends Model
|
||||
{
|
||||
|
|
@ -28,7 +29,13 @@ class News extends Model
|
|||
| FUNCTIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
static::deleting(function($obj) {
|
||||
\Storage::disk('uploads')->delete($obj->img_url);
|
||||
});
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| RELATIONS
|
||||
|
|
@ -52,4 +59,35 @@ class News extends Model
|
|||
| MUTATORS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
public function setBannerUrlAttribute($value)
|
||||
{
|
||||
$attribute_name = "img_url";
|
||||
$disk = 'uploads'; // or use your own disk, defined in config/filesystems.php
|
||||
$destination_path = "images"; // path relative to the disk above
|
||||
|
||||
// if the image was erased
|
||||
if ($value==null) {
|
||||
// delete the image from disk
|
||||
\Storage::disk($disk)->delete($this->{$attribute_name});
|
||||
|
||||
// set null in the database column
|
||||
$this->attributes[$attribute_name] = null;
|
||||
}
|
||||
|
||||
// if a base64 was sent, store it in the db
|
||||
if (starts_with($value, 'data:image'))
|
||||
{
|
||||
// 0. Make the image
|
||||
$image = \Image::make($value)->encode('jpg', 90);
|
||||
// 1. Generate a filename.
|
||||
$filename = md5($value.time()).'.jpg';
|
||||
// 2. Store the image on disk.
|
||||
\Storage::disk($disk)->put($destination_path.'/'.$filename, $image->stream());
|
||||
// 3. Save the public path to the database
|
||||
// but first, remove "public/" from the path, since we're pointing to it from the root folder
|
||||
// that way, what gets saved in the database is the user-accesible URL
|
||||
$public_destination_path = Str::replaceFirst('public/', '', $destination_path);
|
||||
$this->attributes[$attribute_name] = $public_destination_path.'/'.$filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace App\Models;
|
|||
use Illuminate\Database\Eloquent\Model;
|
||||
use Backpack\CRUD\CrudTrait;
|
||||
|
||||
class PageSlider extends Model
|
||||
class Page extends Model
|
||||
{
|
||||
use CrudTrait;
|
||||
|
||||
|
|
@ -15,11 +15,11 @@ class PageSlider extends Model
|
|||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
protected $table = 'pagesliders';
|
||||
protected $table = 'pages';
|
||||
// protected $primaryKey = 'id';
|
||||
// public $timestamps = false;
|
||||
// protected $guarded = ['id'];
|
||||
protected $fillable = ['alt', 'img_url', 'menu_id'];
|
||||
protected $fillable = ['title', 'keywords', 'meta_description', 'description', 'menu_id'];
|
||||
// protected $hidden = [];
|
||||
// protected $dates = [];
|
||||
|
||||
|
|
@ -37,6 +37,22 @@ class PageSlider extends Model
|
|||
public function menu(){
|
||||
return $this->belongsTo(Menu::class);
|
||||
}
|
||||
|
||||
public function sliders(){
|
||||
return $this->hasMany(Slider::class);
|
||||
}
|
||||
|
||||
public function shows(){
|
||||
return $this->hasMany(Show::class);
|
||||
}
|
||||
|
||||
public function pageads(){
|
||||
return $this->hasMany(Pagead::class);
|
||||
}
|
||||
|
||||
public function programmes(){
|
||||
return $this->hasMany(Programme::class);
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SCOPES
|
||||
|
|
@ -4,6 +4,7 @@ namespace App\Models;
|
|||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Backpack\CRUD\CrudTrait;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class Pagead extends Model
|
||||
{
|
||||
|
|
@ -28,13 +29,22 @@ class Pagead extends Model
|
|||
| FUNCTIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
static::deleting(function($obj) {
|
||||
\Storage::disk('uploads')->delete($obj->img_url);
|
||||
\Storage::disk('uploads')->delete($obj->poster_url);
|
||||
});
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| RELATIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public function page(){
|
||||
return $this->belongsTo(Page::class);
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SCOPES
|
||||
|
|
@ -52,4 +62,44 @@ class Pagead extends Model
|
|||
| MUTATORS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
public function setPosterUrlAttribute ($value){
|
||||
|
||||
$this->uploader("poster_url", $value);
|
||||
}
|
||||
|
||||
public function setImgUrlAttribute($value)
|
||||
{
|
||||
|
||||
$this->uploader("img_url", $value);
|
||||
}
|
||||
|
||||
private function uploader ($attribute_name, $value){
|
||||
$disk = 'uploads'; // or use your own disk, defined in config/filesystems.php
|
||||
$destination_path = "images"; // path relative to the disk above
|
||||
|
||||
// if the image was erased
|
||||
if ($value==null) {
|
||||
// delete the image from disk
|
||||
\Storage::disk($disk)->delete($this->{$attribute_name});
|
||||
|
||||
// set null in the database column
|
||||
$this->attributes[$attribute_name] = null;
|
||||
}
|
||||
|
||||
// if a base64 was sent, store it in the db
|
||||
if (starts_with($value, 'data:image'))
|
||||
{
|
||||
// 0. Make the image
|
||||
$image = \Image::make($value)->encode('jpg', 90);
|
||||
// 1. Generate a filename.
|
||||
$filename = md5($value.time()).'.jpg';
|
||||
// 2. Store the image on disk.
|
||||
\Storage::disk($disk)->put($destination_path.'/'.$filename, $image->stream());
|
||||
// 3. Save the public path to the database
|
||||
// but first, remove "public/" from the path, since we're pointing to it from the root folder
|
||||
// that way, what gets saved in the database is the user-accesible URL
|
||||
$public_destination_path = Str::replaceFirst('public/', '', $destination_path);
|
||||
$this->attributes[$attribute_name] = $public_destination_path.'/'.$filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace App\Models;
|
|||
use Illuminate\Database\Eloquent\Model;
|
||||
use Backpack\CRUD\CrudTrait;
|
||||
|
||||
class Description extends Model
|
||||
class Programme extends Model
|
||||
{
|
||||
use CrudTrait;
|
||||
|
||||
|
|
@ -15,11 +15,11 @@ class Description extends Model
|
|||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
protected $table = 'descriptions';
|
||||
protected $table = 'programmes';
|
||||
// protected $primaryKey = 'id';
|
||||
// public $timestamps = false;
|
||||
// protected $guarded = ['id'];
|
||||
protected $fillable = ['header', 'description', 'menu_id'];
|
||||
protected $fillable = ['name', 'altyn', 'yashlyk', 'miras', 'turkmenistan', 'owaz', 'sport', 'page_id'];
|
||||
// protected $hidden = [];
|
||||
// protected $dates = [];
|
||||
|
||||
|
|
@ -34,8 +34,8 @@ class Description extends Model
|
|||
| RELATIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
public function menu(){
|
||||
return $this->belongsTo(Menu::class);
|
||||
public function page(){
|
||||
return $this->belongsTo(Page::class);
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
@ -4,6 +4,7 @@ namespace App\Models;
|
|||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Backpack\CRUD\CrudTrait;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class Show extends Model
|
||||
{
|
||||
|
|
@ -19,7 +20,7 @@ class Show extends Model
|
|||
// protected $primaryKey = 'id';
|
||||
// public $timestamps = false;
|
||||
// protected $guarded = ['id'];
|
||||
protected $fillable = ['name', 'alt', 'img_url', 'description', 'view', 'video_url', 'replace_type'];
|
||||
protected $fillable = ['name', 'alt', 'img_url', 'description', 'view', 'video_url', 'menu_id', 'home'];
|
||||
// protected $hidden = [];
|
||||
// protected $dates = [];
|
||||
|
||||
|
|
@ -28,13 +29,21 @@ class Show extends Model
|
|||
| FUNCTIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
static::deleting(function($obj) {
|
||||
\Storage::disk('uploads')->delete($obj->img_url);
|
||||
});
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| RELATIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public function page(){
|
||||
return $this->belongsTo(Page::class);
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SCOPES
|
||||
|
|
@ -52,4 +61,36 @@ class Show extends Model
|
|||
| MUTATORS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public function setImgUrlAttribute($value)
|
||||
{
|
||||
$attribute_name = "img_url";
|
||||
$disk = 'uploads'; // or use your own disk, defined in config/filesystems.php
|
||||
$destination_path = "images"; // path relative to the disk above
|
||||
|
||||
// if the image was erased
|
||||
if ($value==null) {
|
||||
// delete the image from disk
|
||||
\Storage::disk($disk)->delete($this->{$attribute_name});
|
||||
|
||||
// set null in the database column
|
||||
$this->attributes[$attribute_name] = null;
|
||||
}
|
||||
|
||||
// if a base64 was sent, store it in the db
|
||||
if (starts_with($value, 'data:image'))
|
||||
{
|
||||
// 0. Make the image
|
||||
$image = \Image::make($value)->encode('jpg', 90);
|
||||
// 1. Generate a filename.
|
||||
$filename = md5($value.time()).'.jpg';
|
||||
// 2. Store the image on disk.
|
||||
\Storage::disk($disk)->put($destination_path.'/'.$filename, $image->stream());
|
||||
// 3. Save the public path to the database
|
||||
// but first, remove "public/" from the path, since we're pointing to it from the root folder
|
||||
// that way, what gets saved in the database is the user-accesible URL
|
||||
$public_destination_path = Str::replaceFirst('public/', '', $destination_path);
|
||||
$this->attributes[$attribute_name] = $public_destination_path.'/'.$filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class Slider extends Model
|
|||
// protected $primaryKey = 'id';
|
||||
// public $timestamps = false;
|
||||
// protected $guarded = ['id'];
|
||||
protected $fillable = ['img_url', 'alt', 'url', 'text'];
|
||||
protected $fillable = ['img_url', 'alt', 'page_id', 'home'];
|
||||
// protected $hidden = [];
|
||||
// protected $dates = [];
|
||||
|
||||
|
|
@ -34,7 +34,9 @@ class Slider extends Model
|
|||
| RELATIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public function page(){
|
||||
return $this->belongsTo(Page::class);
|
||||
}
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SCOPES
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Providers;
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Models\Menu;
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class CreateMenusTable extends Migration
|
|||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('url');
|
||||
$table->enum('menu_type',['top','middle','bottom']);
|
||||
$table->enum('menu_type',['top','middle','bottom','home']);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateDescriptionsTable extends Migration
|
||||
class CreatePagesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
|
|
@ -12,10 +12,12 @@ class CreateDescriptionsTable extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('descriptions', function (Blueprint $table) {
|
||||
Schema::create('pages', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('header');
|
||||
$table->longText('description');
|
||||
$table->string('title')->nullable();
|
||||
$table->string('keywords')->nullable();
|
||||
$table->text('meta_description')->nullable();
|
||||
$table->longText('description')->nullable();
|
||||
$table->unsignedInteger('menu_id');
|
||||
$table->foreign('menu_id')->references('id')->on('menus');
|
||||
$table->timestamps();
|
||||
|
|
@ -29,6 +31,6 @@ class CreateDescriptionsTable extends Migration
|
|||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('descriptions');
|
||||
Schema::dropIfExists('pages');
|
||||
}
|
||||
}
|
||||
|
|
@ -16,6 +16,9 @@ class CreateSlidersTable extends Migration
|
|||
$table->increments('id');
|
||||
$table->text('img_url');
|
||||
$table->string('alt')->nullable();
|
||||
$table->boolean('home')->default(0);
|
||||
$table->unsignedInteger('page_id')->nullable();
|
||||
$table->foreign('page_id')->references('id')->on('pages');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,9 @@ class CreateShowsTable extends Migration
|
|||
$table->longText('description')->nullable();
|
||||
$table->integer('view');
|
||||
$table->longText('video_url')->nullable();
|
||||
$table->enum('replace_type',['homeShows','bestShowsHome','animations','tmFilm']);
|
||||
$table->boolean('home')->default(0);
|
||||
$table->unsignedInteger('page_id')->nullable();
|
||||
$table->foreign('page_id')->references('id')->on('pages');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePageslidersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('pagesliders', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('alt')->nullable();
|
||||
$table->longText('img_url')->nullable();
|
||||
$table->unsignedInteger('menu_id')->nullable();
|
||||
$table->foreign('menu_id')->references('id')->on('menus');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('pagesliders');
|
||||
}
|
||||
}
|
||||
|
|
@ -19,6 +19,8 @@ class CreatePageadsTable extends Migration
|
|||
$table->longText('poster_url')->nullable();
|
||||
$table->longText('img_url')->nullable();
|
||||
$table->longText('video_url')->nullable();
|
||||
$table->unsignedInteger('page_id')->nullable();
|
||||
$table->foreign('page_id')->references('id')->on('pages');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateProgrammesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('programmes', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->longText('altyn')->nullable();
|
||||
$table->longText('yashlyk')->nullable();
|
||||
$table->longText('miras')->nullable();
|
||||
$table->longText('turkmenistan')->nullable();
|
||||
$table->longText('owaz')->nullable();
|
||||
$table->longText('sport')->nullable();
|
||||
$table->unsignedInteger('page_id')->nullable();
|
||||
$table->foreign('page_id')->references('id')->on('pages');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('programmes');
|
||||
}
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddToSlidersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('sliders', function (Blueprint $table) {
|
||||
$table->string('url')->nullable();
|
||||
$table->text('text')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('sliders', function (Blueprint $table) {
|
||||
$table->dropColumn('url');
|
||||
$table->dropColumn('text');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -23,6 +23,7 @@ class MenuSeeder extends Seeder
|
|||
['id'=>null,'name'=>'Habarlar','url'=>'/','menu_type'=>'middle'],
|
||||
['id'=>null,'name'=>'Göni ýaýlym','url'=>'/','menu_type'=>'middle'],
|
||||
['id'=>null,'name'=>'Teleprogramma','url'=>'/','menu_type'=>'middle'],
|
||||
['id'=>null,'name'=>'Home','url'=>'/','menu_type'=>'home'],
|
||||
];
|
||||
DB::table('menus')->insert($groups);
|
||||
}
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 254 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
|
@ -6,22 +6,11 @@
|
|||
<li><a href="{{ backpack_url('elfinder') }}"><i class="fa fa-files-o"></i> <span>{{ trans('backpack::crud.file_manager') }}</span></a></li>
|
||||
<li><a href="{{ backpack_url('order') }}"><i class='fa fa-cubes'></i> <span>Orders</span></a></li>
|
||||
<li class="header">Web</li>
|
||||
<li><a href="{{backpack_url('menu') }}"><i class="fa fa-file-o"></i> <span>Menus</span></a></li>
|
||||
<li><a href="{{backpack_url('page') }}"><i class="fa fa-file"></i> <span>Pages</span></a></li>
|
||||
<li><a href="{{backpack_url('menu') }}"><i class="fa fa-cubes"></i> <span>Menus</span></a></li>
|
||||
<li><a href="{{backpack_url('news') }}"><i class="fa fa-newspaper-o"></i> <span>News</span></a></li>
|
||||
<li><a href="{{backpack_url('show') }}"><i class="fa fa-video-camera"></i> <span>Shows</span></a></li>
|
||||
<li><a href="{{backpack_url('pageslider') }}"><i class="fa fa-image"></i> <span>Page Sliders</span></a></li>
|
||||
<li><a href="{{backpack_url('description') }}"><i class="fa fa-dedent"></i> <span>Texts</span></a></li>
|
||||
<li><a href="{{backpack_url('show') }}"><i class="fa fa-video-camera"></i> <span>Video Materials</span></a></li>
|
||||
<li><a href="{{backpack_url('slider') }}"><i class="fa fa-image"></i> <span>Sliders</span></a></li>
|
||||
<li><a href="{{backpack_url('pagead') }}"><i class="fa fa-bookmark"></i> <span>Page Advertisements</span></a></li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-home"></i>
|
||||
<span>Home</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="{{backpack_url('slider') }}"><i class="fa fa-image"></i> <span>Sliders</span></a></li>
|
||||
<li><a href="{{backpack_url('advertisement') }}"><i class="fa fa-bookmark"></i> <span>Advertisements</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="{{backpack_url('programme') }}"><i class="fa fa-table"></i> <span>Programmes</span></a></li>
|
||||
<li><a href="{{backpack_url('advertisement') }}"><i class="fa fa-home"></i> <span>Home Advertisements</span></a></li>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,83 @@
|
|||
@extends('web.layouts.app')
|
||||
@section('content')
|
||||
|
||||
<div class="container wrapper mahabat" style="margin-top: 5%">
|
||||
<div class="row" style="padding-top: 0">
|
||||
<div class="pages-tree">
|
||||
<ol class="breadcrumb" style="background: none">
|
||||
<li><a href="#" class='fontRegular'>Baş Sahypa</a></li>
|
||||
<li class="active"><span class='fontRegular'>Habarlar</span></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container all_news">
|
||||
<div class="row">
|
||||
<div class='tpl-block-full tpl-component-mainnews tpl-template-196' id='nc-block-49ada2da118ae1ce34593a27c7154d40'>
|
||||
<style>.liqq {
|
||||
list-style: none;
|
||||
font-weight: bold;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 2px solid #d6d6d6;
|
||||
}
|
||||
.liqq:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.colorbl{
|
||||
color:#000000 !important;
|
||||
}
|
||||
.tagsq{
|
||||
color: #000000 !important;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
.testqq{
|
||||
width: 100% !important;
|
||||
}
|
||||
.testqq img{
|
||||
width: 100% !important;
|
||||
}
|
||||
</style>
|
||||
<h2 style="color: #05559a; font-weight: bold; margin-bottom: 20px" class='fontSemiBold'>{{$news->name}}</h2>
|
||||
<div class="col-lg-8 col-md-8" style="margin-bottom: 50px; padding-right: 10px;padding-left: 0;">
|
||||
<h5 style="margin-bottom: 25px; color: #989898" class='fontRegular'>{{$news->date}}</h5>
|
||||
<div class="testqq"> <img src='{{$news->img_url}}' /></div>
|
||||
<h5 class="pull-right fontRegular" style="color: #989898; margin-top: 10px; margin-bottom: 20px"></h5>
|
||||
<p class="pull-left fontRegular" style="margin-bottom: 20px">
|
||||
{!! $news->description !!}
|
||||
</p>
|
||||
</div>
|
||||
<div class="tpl-block-list tpl-component-mainnews tpl-template-196" id="nc-block-8b79e013441bc7fbbb123ffe4e95addd">
|
||||
<style>.liqq {
|
||||
list-style: none;
|
||||
font-weight: bold;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 2px solid #d6d6d6;
|
||||
}
|
||||
.liqq:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.colorbl{
|
||||
color:#000000 !important;
|
||||
}
|
||||
.tagsq{
|
||||
color: #000000 !important;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
</style>
|
||||
<div class="col-lg-4 col-md-4" style="padding-left: 10px">
|
||||
<h4 style="font-weight: bold; color: #05559a; margin-bottom: 20px" class='fontSemiBold'>Habarlar</h4>
|
||||
<div style="width: 100%; background-color: #05559a; height: 5px"></div>
|
||||
<ul style="padding-left: 0;">
|
||||
@foreach($newsMenu as $menu)
|
||||
<li class="liqq"><a class="colorbl " href="{{route('getNews', $menu->id)}}" style="text-transform: capitalize">{{ $menu->name }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<div style="width: 100%; background-color: #05559a; height: 5px; margin-top: 20px"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
|
@ -5,7 +5,9 @@
|
|||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>turkmentv.gov.tm</title>
|
||||
<title>{{ $title }}</title>
|
||||
<meta name='keywords' content='{{ $keywords }}' />
|
||||
<meta name='description' content='{{ $meta_description }}' />
|
||||
<link rel="shortcut icon" href="{{ asset ('assets/favicon.ico')}}">
|
||||
<link rel="stylesheet" href="{{ asset ('assets/css/bootstrap.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset ('assets/libs/doodle/vendors/bower_components/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.scss.txt')}}">
|
||||
|
|
|
|||
|
|
@ -21,10 +21,11 @@
|
|||
<ul class="bottom-left-menu" style="margin: 0; padding: 0; display: inline-block;position:relative;top: 2px;">
|
||||
<div class="tpl-block-list tpl-component-217" id="nc-block-c72c2bf4e3accf90c47b63adf23ec8b7">
|
||||
|
||||
<li><a class = "aq" style = "font-family: SourceSansRegular;font-size: 15.5px;" href="{{route('newsList')}}">Habarlar</a></li>
|
||||
@foreach($middleMenus as $middleMenu)
|
||||
<li><a class = "aq" style = "font-family: SourceSansRegular;font-size: 15.5px;" href="{{route('menuLinkWeb', $middleMenu->id)}}">{{ $middleMenu->name }}</a></li>
|
||||
@endforeach
|
||||
|
||||
@endforeach
|
||||
<li><a class = "aq" style = "font-family: SourceSansRegular;font-size: 15.5px;" href="{{route('home')}}">Tolegli maglumat</a></li>
|
||||
</div> </ul>
|
||||
<ul class="bottom-right-menu pull-right" style="margin: 0; padding: 0; display: inline-block;">
|
||||
<li><img src="{{ asset('assets/img/phone.png') }}" style="height: 17px; display: inline-block; margin-top: -4px"> <a href="ru/kontakty/index.html" style="display: inline-block; font-family:SourceSansRegular;">Habarlaşmak üçin</a></li>
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
@endforeach
|
||||
|
||||
<!-- Next and previous buttons -->
|
||||
<a class="prev"><i class="ti-arrow-circle-left"></i></a>
|
||||
<a id = "nextq" class="next"><i class="ti-arrow-circle-right"></i></a>
|
||||
<!-- <a class="prev"><i class="ti-arrow-circle-left"></i></a>
|
||||
<a id = "nextq" class="next"><i class="ti-arrow-circle-right"></i></a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
|
|
@ -95,14 +95,14 @@
|
|||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="top-part">
|
||||
<a href="">
|
||||
<img src="{{ $itemShow2 -> img_url }}">
|
||||
<img src="{{ asset('uploads/'.$itemShow2 -> img_url) }}">
|
||||
<div class="top-bottom-shadow"></div>
|
||||
<span class="view-counter fontLight" style = "font-size: 20px !important;"><i class="icon-eye"></i> {{ $itemShow2->view }}</span>
|
||||
<span class="tv-project-title fontBold"><i class="fa fa-play-circle-o"></i>{{ $itemShow2->name}}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="bottom-part">
|
||||
<p class = "fontRegular" style = "font-size: 21px;">{{ str_limit($itemShow2->description, $limit = 50, $end = '...') }}</p>
|
||||
<p class = "fontRegular" style = "font-size: 21px;">{{ str_limit(strip_tags($itemShow2->description), $limit = 50, $end = '...') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
|
@ -118,14 +118,14 @@
|
|||
<div class="col-lg-4 col-md-4 col-sm-4" style = "display: block">
|
||||
<div class="top-part">
|
||||
<a href="">
|
||||
<img src="{{ $showItem3 -> img_url }}">
|
||||
<img src="{{ asset('uploads/'.$showItem3 -> img_url) }}">
|
||||
<div class="top-bottom-shadow"></div>
|
||||
<span class="view-counter fontLight" style = "font-size: 20px !important;"><i class="icon-eye"></i> {{$showItem3->view}}</span>
|
||||
<span class="tv-project-title fontBold" style = "font-size: 23px;"><i class="fa fa-play-circle-o"></i> {{$showItem3->name}}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="bottom-part">
|
||||
<p class = "fontRegular" style = "font-size: 21px;">{{ str_limit($showItem3->description, $limit = 30, $end = '...') }}</p>
|
||||
<p class = "fontRegular" style = "font-size: 21px;">{{ str_limit(strip_tags($showItem3->description), $limit = 30, $end = '...') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
|
@ -161,7 +161,7 @@
|
|||
<div class="most-populars-card">
|
||||
<div class="top-part">
|
||||
<a href="">
|
||||
<img src="{{$bestShow->img_url}}">
|
||||
<img src="{{ asset('uploads/'.$bestShow->img_url)}}">
|
||||
<div class="top-bottom-shadow"></div>
|
||||
<span class="view-counter-most-popular" style = "font-size: 20px !important;"><i class="icon-eye"></i> {{$bestShow->view}}</span>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,71 @@
|
|||
@extends('web.layouts.app')
|
||||
@section('content')
|
||||
|
||||
<div class="container wrapper mahabat" style="margin-top: 5%">
|
||||
<div class="row" style="padding-top: 0">
|
||||
<div class="pages-tree">
|
||||
<ol class="breadcrumb" style="background: none">
|
||||
<li><a href="#" class='fontRegular'>Baş Sahypa</a></li>
|
||||
<li class="active"><span class='fontRegular'>Habarlar</span></li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tpl-block-list tpl-component-mainnews tpl-template-196" id="nc-block-8345a5754a2d44dad9b34f680de9a83d">
|
||||
|
||||
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8 text-center" style="padding-right: 10px; padding-top: 50px;">
|
||||
<a href="{{route('getNews', $main->id)}}"><img src="{{ $main->img_url }}" style="width: 100%;"></a>
|
||||
<h4 style="color: #05559a; margin-top: 10px;"><a href="{{route('getNews', $main->id)}}" class='fontSemiBold'>
|
||||
{{ $main->name }}</a></h4>
|
||||
<p style="margin-top: 20px;margin-bottom: 10px; font-size: 18px;" class='fontRegular'>
|
||||
<p style="text-align: justify;"><span style="font-size:18px;">
|
||||
{{ str_limit(strip_tags($main->description), $limit = 180, $end = '...') }}
|
||||
</span></p>
|
||||
<h4 style=" font-weight: bold; line-height: 30px" class='fontRegular'>{{
|
||||
$main->date }}</h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-center" style="padding-left: 10px">
|
||||
<h4 style="font-weight: bold; color: #05559a; margin-bottom: 20px; text-align: left; width: 90%; margin: auto; margin-bottom: 30px"
|
||||
class='fontSemiBold'>Senenama</h4>
|
||||
<div style="width: 90%; height: 5px; background-color: #05559a; margin: auto; margin-bottom: 20px"></div>
|
||||
<div class='fontRegular' id="calendar" style="width: 100%;">
|
||||
<input type="text" id="txtTest" style="display: none;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="novosti"></div>
|
||||
<style>
|
||||
.paddinglr1 {
|
||||
padding-left: 7px !important;
|
||||
padding-right: 7px !important;
|
||||
padding-bottom: 25px !important;
|
||||
}
|
||||
|
||||
.paddinglr1 a img {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-top: 40px; display: flex; flex-wrap: wrap;">
|
||||
@foreach($news as $new)
|
||||
<div class="paddinglr1 news-item col-lg-4 col-md-4 text-center" style=''>
|
||||
<a href="{{route('getNews', $new->id)}}"><img src='{{ $new->img_url }}' /></a>
|
||||
<h5 style="color: #05559a; font-weight: bold; margin-top: 10px"><a href="{{route('getNews', $new->id)}}" style="padding: 10px;" class='fontSemiBold'>{{
|
||||
$new->name }}</a></h5>
|
||||
<h5 style="font-weight: bold; line-height: 28px" class='fontRegular'>{{ $new -> date }}</h5>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@if(!empty($news))
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style=" text-align: center;">
|
||||
{{ $news->links('vendor.pagination.simple-default') }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
@extends('web.layouts.app')
|
||||
|
||||
@if($pageNames->id != 5 && $pageNames->id != 6)
|
||||
@if(!empty($pageSliders) && $pageSliders->count()>0)
|
||||
@section('content')
|
||||
|
||||
<div class="tpl-block-list tpl-component-mahslider">
|
||||
<div class="container-fluid header-carousel mahabat">
|
||||
<div class="row">
|
||||
|
|
@ -22,286 +21,57 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@endif
|
||||
|
||||
@section('content2')
|
||||
@if($pageNames->id != 5 && $pageNames->id != 6)
|
||||
<div class="container wrapper mahabat" style="margin-top: 38%">
|
||||
@else
|
||||
<div class="container wrapper mahabat" style="margin-top: 5%">
|
||||
@endif
|
||||
<div class="row" style="padding-top: 0">
|
||||
<div class="pages-tree">
|
||||
<ol class="breadcrumb" style="background: none">
|
||||
<li><a href="{{ route ('homeWeb') }}" class='fontRegular'>Baş Sahypa</a></li>
|
||||
<li class="active"><span class='fontRegular'>{{$pageNames->name}}</span></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="container wrapper " style="{{ $pageSliders->count()>0 ? 'margin-top:38%' : 'margin-top: 5%' }}">
|
||||
<div class="row" style="padding-top: 0">
|
||||
<div class="pages-tree">
|
||||
<ol class="breadcrumb" style="background: none">
|
||||
<li><a href="{{ route ('homeWeb') }}" class='fontRegular'>Baş Sahypa</a></li>
|
||||
<li class="active"><span class='fontRegular'>{{$page->title}}</span></li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div class="container mahabat">
|
||||
<div class="row">
|
||||
<div class="tpl-block-list tpl-component-aboutmah" id="nc-block-99cb3c351687119504bfe255cd614ba0">
|
||||
<div id="aboutmah"></div>
|
||||
@if($pageNames->id != 5)
|
||||
<h2><a href="" class='fontSemiBold'>"{{$pageNames->name}}" <i class="fa fa-play-circle-o"></i></a></h2>
|
||||
@else
|
||||
<h2 class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 0px"><a href="" class='fontSemiBold'>Habarlar
|
||||
</a></h2>
|
||||
@endif
|
||||
<div class="mahabat-content">
|
||||
<p class='fontRegular'>
|
||||
@if($pageNames->id != 5 && $pageNames->id != 6)
|
||||
{!! $descriptions -> description !!}
|
||||
@endif
|
||||
</p>
|
||||
<div class="container mahabat">
|
||||
<div class="row">
|
||||
<div class="tpl-block-list tpl-component-aboutmah" id="nc-block-99cb3c351687119504bfe255cd614ba0">
|
||||
<div id="aboutmah"></div>
|
||||
<h2><a href="" class="fontSemiBold">"{{ $page->title }}" <i class="fa fa-play-circle-o"></i></a></h2>
|
||||
@if(!empty($page->description))
|
||||
<div class="mahabat-content">
|
||||
{!! $page -> description !!}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="tpl-block-list tpl-component-bestadv tpl-template-212" id="nc-block-65830ee3ad0cadee448c685324b10d4a">
|
||||
<div id="bestadv"></div>
|
||||
<div class="tpl-block-list tpl-component-bestadv tpl-template-213" id="nc-block-c11f6de2ee5c0ef1304c940bc6341eb2">
|
||||
|
||||
<div class="container best-adver">
|
||||
<div class="row">
|
||||
|
||||
@if(!empty($shows) && $shows->count()>0)
|
||||
@include('web.partials.shows')
|
||||
@endif
|
||||
|
||||
@if(!empty($advs) && $advs->count()>0)
|
||||
@include('web.partials.advs')
|
||||
@endif
|
||||
|
||||
@if(!empty($programmes) && $programmes->count()>0)
|
||||
@include('web.partials.programmes')
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tpl-block-list tpl-component-bestadv tpl-template-212" id="nc-block-65830ee3ad0cadee448c685324b10d4a">
|
||||
<div id="bestadv"></div>
|
||||
<div class="tpl-block-list tpl-component-bestadv tpl-template-213" id="nc-block-c11f6de2ee5c0ef1304c940bc6341eb2">
|
||||
<h2 style="margin-top: 40px; margin-bottom: 50px;"><a href="" class='fontSemiBold'>
|
||||
@if($pageNames->id == 1)
|
||||
Kinofilmlerden bölekler <i class="fa fa-play-circle-o"></i></a></h2>
|
||||
@elseif($pageNames->id == 3)
|
||||
Mahabatlar <i class="fa fa-play-circle-o"></i></a></h2>
|
||||
|
||||
@elseif($pageNames->id == 4)
|
||||
Animasiýalar <i class="fa fa-play-circle-o"></i></a></h2>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<div class="container best-adver">
|
||||
<div class="row">
|
||||
|
||||
@if($pageNames->id == 1)
|
||||
<div class="col-lg-12 col-md-12">
|
||||
@foreach($tmFilms as $tmFilm)
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="top-part">
|
||||
<a href="#">
|
||||
<img src="{{ $tmFilm->img_url }}">
|
||||
<div class="best-movies-overlay">
|
||||
<div class="best-movies-overlay-text">
|
||||
<div class="overlay-text">
|
||||
<span class="text-center">
|
||||
<h4>"{{ $tmFilm -> name }}"</h4>
|
||||
<p>{{ $tmFilm -> description }}</p>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-bottom-shadow"></div>
|
||||
<span class="view-counter" style="font-size: 22px !important;"><i
|
||||
class="icon-eye"></i> {{ $tmFilm -> view }}</span>
|
||||
<a href="{{ $tmFilm -> video_url }}" class="play-button"><i class="fa fa-play-circle-o"
|
||||
download></i></a>
|
||||
<a href="#" class="download-button"><i class="fa fa-download"></i></a>
|
||||
<span class="tv-project-title text-center out fontBold" style="font-size: 25px;">"{{
|
||||
$tmFilm -> name }}"</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="showmore-button text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<a href="mahabat/index.html" class="btn btn-default fontRegular">Doly görkez</a>
|
||||
</div>
|
||||
</div>
|
||||
@elseif($pageNames->id == 3)
|
||||
<div class="col-lg-12 col-md-12">
|
||||
@foreach($pageAds as $pageAd)
|
||||
@if($pageAd->adv_type == 'image')
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="top-part">
|
||||
<a href="/">
|
||||
<img src="{{ $pageAd -> img_url }}">
|
||||
<div class="best-adver-overlay">
|
||||
<div class="best-adver-overlay-text">
|
||||
<div class="overlay-text">
|
||||
<span class="text-center">
|
||||
<h4>{{ $pageAd->name }}</h4>
|
||||
<h5></h5>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-bottom-shadow"></div>
|
||||
|
||||
<a href="{{ $pageAd->img_url }}" target="_blank" class="download-button"
|
||||
download><i class="fa fa-download"></i></a>
|
||||
<span class="tv-project-title text-center out fontBold">{{
|
||||
$pageAd->name }}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@elseif ($pageAd->adv_type == 'video')
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="top-part">
|
||||
<a href="/">
|
||||
<img src="{{ $pageAd -> poster_url }}">
|
||||
<div class="best-adver-overlay">
|
||||
<div class="best-adver-overlay-text">
|
||||
<div class="overlay-text">
|
||||
<span class="text-center">
|
||||
<h4>{{ $pageAd->name }}</h4>
|
||||
<h5></h5>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-bottom-shadow"></div>
|
||||
<a href="/" class="play-button"><i class="fa fa-play-circle-o"></i></a>
|
||||
<a href="{{ $pageAd->video_url }}" class="download-button" download><i
|
||||
class="fa fa-download"></i></a>
|
||||
<span class="tv-project-title text-center out fontBold">{{
|
||||
$pageAd->name }}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="showmore-button text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<a href="mahabat/index.html" class="btn btn-default fontRegular">Doly görkez</a>
|
||||
</div>
|
||||
</div>
|
||||
@elseif($pageNames->id == 4)
|
||||
|
||||
<div class="column col-lg-12 col-md-12 col-sm-12">
|
||||
@foreach($animations as $animation)
|
||||
<div class="item col-lg-4 col-md-4 col-sm-4">
|
||||
<a href="#"><img src="{{ $animation->img_url }}" alt="{{ $animation->alt }}" class="image"></a>
|
||||
<a href="animasiya-bolumi-1_5.html">
|
||||
<div class="overlay">
|
||||
<div class="text">
|
||||
<h3 class="fontBold">"{{ $animation->name }}"</h3>
|
||||
<h4></h4>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@elseif($pageNames->id == 5)
|
||||
|
||||
<div class="tpl-block-list tpl-component-mainnews tpl-template-198" id="nc-block-fb053cc7ebdb68531fbbe3b23f63e79d">
|
||||
|
||||
<div class="tpl-block-list tpl-component-mainnews tpl-template-196" id="nc-block-8345a5754a2d44dad9b34f680de9a83d">
|
||||
|
||||
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8 text-center" style="padding-right: 10px; padding-top: 50px;">
|
||||
<a href="#"><img src="{{ $news1->img_url }}" style="width: 100%;"></a>
|
||||
<h4 style="color: #05559a; margin-top: 10px;"><a href="novosti_145.html" class='fontSemiBold'>
|
||||
{{ $news1->name }}</a></h4>
|
||||
<p style="margin-top: 20px;margin-bottom: 10px; font-size: 18px;" class='fontRegular'>
|
||||
<p style="text-align: justify;"><span style="font-size:18px;">
|
||||
{{ str_limit(strip_tags($news1->description), $limit = 180, $end = '...') }}
|
||||
</span></p>
|
||||
|
||||
<h4 style=" font-weight: bold; line-height: 30px" class='fontRegular'>{{
|
||||
$news1->date }}</h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 text-center" style="padding-left: 10px">
|
||||
<h4 style="font-weight: bold; color: #05559a; margin-bottom: 20px; text-align: left; width: 90%; margin: auto; margin-bottom: 30px"
|
||||
class='fontSemiBold'>Senenama</h4>
|
||||
<div style="width: 90%; height: 5px; background-color: #05559a; margin: auto; margin-bottom: 20px"></div>
|
||||
<div class='fontRegular' id="calendar" style="width: 100%;">
|
||||
<input type="text" id="txtTest" style="display: none;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="novosti"></div>
|
||||
<style>
|
||||
.paddinglr1 {
|
||||
padding-left: 7px !important;
|
||||
padding-right: 7px !important;
|
||||
padding-bottom: 25px !important;
|
||||
}
|
||||
|
||||
.paddinglr1 a img {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-top: 40px; display: flex; flex-wrap: wrap;">
|
||||
@foreach($news2 as $new2)
|
||||
<div class="paddinglr1 news-item col-lg-4 col-md-4 text-center" style=''>
|
||||
<a href="#"><img src='{{ $new2->img_url }}' /></a>
|
||||
<h5 style="color: #05559a; font-weight: bold; margin-top: 10px"><a href="#" style="padding: 10px;"
|
||||
class='fontSemiBold'>{{ $new2->name }}</a></h5>
|
||||
<h5 style="font-weight: bold; line-height: 28px" class='fontRegular'>{{ $new2 -> date }}</h5>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@elseif($pageNames->id == 6)
|
||||
|
||||
|
||||
<div class="tpl-block-list tpl-component-videoplayer" id="nc-block-25b571b99ac5d99306522434f0ea6f6a">
|
||||
|
||||
<div class="video-player">
|
||||
<video id="webtv-video" width="100%" height="100%" controls>Loading...</video>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tpl-block-list tpl-component-livechannels" id="nc-block-f78d9add97669562636d2ac7a5d6b3c3">
|
||||
<div id="livechannels"></div>
|
||||
<div class="live-imgs text-center">
|
||||
<div class="">
|
||||
<a href="javascript:void(0);" onclick="setupVar1()"><img src="{{ asset( 'assets/img/live-imgs/altyn.png' ) }}"
|
||||
alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="javascript:void(0);" onclick="setupVar2()"><img src="{{ asset ('assets/img/live-imgs/yaslyk.png')}}"
|
||||
alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="javascript:void(0);" onclick="setupVar3()"><img src="{{ asset ('assets/img/live-imgs/miras.png')}}"
|
||||
alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="javascript:void(0);" onclick="setupVar4()"><img src="{{ asset ('assets/img/live-imgs/turkmenistan.png')}}"
|
||||
alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="javascript:void(0);" onclick="setupVar5()"><img src="{{ asset ('assets/img/live-imgs/owaz.png')}}"
|
||||
alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="javascript:void(0);" onclick="setupVar6()"><img src="{{ asset ('assets/img/live-imgs/ashgabat.png')}}"
|
||||
alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="javascript:void(0);" onclick="setupVar7()"><img src="{{ asset ('assets/img/live-imgs/sport.png')}}"
|
||||
alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -0,0 +1,36 @@
|
|||
<div class="col-lg-12 col-md-12">
|
||||
@foreach($advs as $adv)
|
||||
@if($adv->adv_type == 'video')
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="top-part">
|
||||
<a href="#">
|
||||
<img src="{{ asset('uploads/'.$adv->poster_url) }}" alt="{{ $adv->alt }}">
|
||||
<div class="best-adver-overlay">
|
||||
<div class="best-adver-overlay-text">
|
||||
<div class="overlay-text">
|
||||
<span class="text-center">
|
||||
<h4>{{$adv->name}}</h4>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-bottom-shadow"></div>
|
||||
<a href="#" class="play-button"><i
|
||||
class="fa fa-play-circle-o"></i></a>
|
||||
<a href="{{ asset('uploads/'.$adv->video_url) }}" class="download-button"><i
|
||||
class="fa fa-download" download></i></a>
|
||||
<span class="tv-project-title text-center out fontBold">"{{$adv->name}}"</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<a href="#"><img src="{{ asset('uploads/'.$adv->img_url) }}"
|
||||
alt="" style="width: 100%"></a>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="showmore-button text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<a href="#" class="btn btn-default fontRegular">Doly görkez</a>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,387 @@
|
|||
<div class="teleprogram-timetable">
|
||||
<div class="tpl-block-list tpl-component-slider-timetable" id="nc-block-2a9fd81abac55df0dd9e069e6e141508">
|
||||
<style>
|
||||
.activeq{
|
||||
background-color: #1b1a1a !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="timeslider">
|
||||
<div id="owl-demo-timeslider" class="owl-carousel owl-theme" style=" border-top: 1.5px solid black;">
|
||||
@foreach($programmes as $programme)
|
||||
<div class="item">
|
||||
<a href="#">
|
||||
<h4 class="fontRegular">{{ $programme -> name }}</h4>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="customNavigation">
|
||||
<a class="btn prev-timeslider pull-left"><i class="fa fa-angle-left"></i></a>
|
||||
<a class="btn next-timeslider pull-right"><i class="fa fa-angle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tpl-block-list tpl-component-timetabletab" id="nc-block-b5cbfa64ccffd9ef97616fe6bf192570">
|
||||
<div class="pills-struct vertical-pills mt-40">
|
||||
<ul role="tablist" class="nav nav-pills ver-nav-pills" id="myTab-timetable">
|
||||
<li class="active" role="presentation">
|
||||
<a aria-expanded="true" data-toggle="tab" role="tab" id="altyn-timetable-title"
|
||||
href="#altyn-timetable-content"><img src="{{ asset( 'assets/static/img/live-imgs/altyn.png')}}"
|
||||
alt=""></a>
|
||||
</li>
|
||||
<li role="presentation" class="">
|
||||
<a data-toggle="tab" id="yashlyk-timetable-title" role="tab" href="#yashlyk-timetable-content"
|
||||
aria-expanded="false"><img src="{{ asset( 'assets/static/img/live-imgs/yaslyk.png')}}"
|
||||
alt=""></a>
|
||||
</li>
|
||||
<li role="presentation" class="">
|
||||
<a data-toggle="tab" id="miras-timetable-title" role="tab" href="#miras-timetable-content"
|
||||
aria-expanded="false"><img src="{{ asset( 'assets/static/img/live-imgs/miras.png')}}"
|
||||
alt=""></a>
|
||||
</li>
|
||||
<li role="presentation" class="">
|
||||
<a data-toggle="tab" id="turkmenistan-timetable-title" role="tab" href="#turkmenistan-timetable-content"
|
||||
aria-expanded="false"><img src="{{ asset( 'assets/static/img/live-imgs/turkmenistan.png')}}"
|
||||
alt=""></a>
|
||||
</li>
|
||||
<li role="presentation" class="">
|
||||
<a data-toggle="tab" id="owaz-timetable-title" role="tab" href="#owaz-timetable-content"
|
||||
aria-expanded="false"><img src="{{ asset( 'assets/static/img/live-imgs/owaz.png')}}"
|
||||
alt=""></a>
|
||||
</li>
|
||||
<li role="presentation" class="">
|
||||
<a data-toggle="tab" id="ashgabat-timetable-title" role="tab" href="#ashgabat-timetable-content"
|
||||
aria-expanded="false"><img src="{{ asset( 'assets/static/img/live-imgs/ashgabat.png')}}"
|
||||
alt=""></a>
|
||||
</li>
|
||||
<li role="presentation" class="">
|
||||
<a data-toggle="tab" id="sport-timetable-title" role="tab" href="#sport-timetable-content"
|
||||
aria-expanded="false"><img src="{{ asset( 'assets/static/img/live-imgs/sport.png')}}"
|
||||
alt=""></a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" id="myTab-timetable-content" style="height: 1120px;">
|
||||
<div id="altyn-timetable-content" class="tab-pane fade active in" role="tabpanel">
|
||||
<div class="tpl-block-list tpl-component-timetabledata" id="nc-block-74ebc70c24afdc97e5245fe8ab9e2cc9">
|
||||
<style>#myTab-timetable-content table>tbody>tr:nth-of-type(odd){
|
||||
background: none;
|
||||
}
|
||||
#myTab-timetable-content table>tbody>tr:nth-of-type(even){
|
||||
background-color: #f4f5f4;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 20px;
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
table>tbody>tr>td>p{
|
||||
font-family: SourceSansRegular;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="table-wrap mt-40">
|
||||
<div class="table-responsive">
|
||||
{{}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="yashlyk-timetable-content" class="tab-pane fade" role="tabpanel">
|
||||
<div class="tpl-block-list tpl-component-timetabledata" id="nc-block-dc0ea12641d2ff7d574bfd3155dec737">
|
||||
<style>#myTab-timetable-content table>tbody>tr:nth-of-type(odd){
|
||||
background: none;
|
||||
}
|
||||
#myTab-timetable-content table>tbody>tr:nth-of-type(even){
|
||||
background-color: #f4f5f4;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 20px;
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
table>tbody>tr>td>p{
|
||||
font-family: SourceSansRegular;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="table-wrap mt-40">
|
||||
<div class="table-responsive">
|
||||
|
||||
<h4><strong>06. 55 Berkararlyk
|
||||
senasy.</strong></h4>
|
||||
<h4><strong>07. 00 Watan.</strong></h4>
|
||||
<h4><strong>07. 30 Säher
|
||||
ýyldyzlary.</strong></h4>
|
||||
<h4><strong>08. 00 Watan guwanjy.</strong></h4>
|
||||
<h4><strong>08. 30 Çagalar
|
||||
dünýäsi.</strong></h4>
|
||||
<h4><strong>09. 00
|
||||
Watan. </strong></h4>
|
||||
<h4><strong>09. 30
|
||||
Multfilm. </strong></h4>
|
||||
<h4><strong>11. 00 Altyn aşyk.</strong></h4>
|
||||
<h4><strong>11. 30 Bilgirje.</strong></h4>
|
||||
<h4><strong>12. 00 Watan.</strong></h4>
|
||||
<h4><strong>12. 30 Ylhamly
|
||||
ýaşlar. </strong></h4>
|
||||
<h4><strong>13. 30 Men
|
||||
kärimiň aşygy. </strong></h4>
|
||||
<h4><strong>14. 00 Halypa pendini
|
||||
diňleseň. </strong></h4>
|
||||
<h4><strong>14. 30 Bilesim
|
||||
gelýär.</strong></h4>
|
||||
<h4><strong>15. 00 Watan.</strong></h4>
|
||||
<h4><strong>15. 30 Multfilm.</strong></h4>
|
||||
<h4><strong>16. 40
|
||||
Bagtyýar mekanym. </strong></h4>
|
||||
<h4><strong>17. 20 Döwletli
|
||||
zamananyň ýaşlary.</strong></h4>
|
||||
<h4><strong>18. 00
|
||||
“Deýn we Enni” çeper
|
||||
film. </strong></h4>
|
||||
<h4><strong>19. 00 Öwrenesim
|
||||
gelýär.</strong></h4>
|
||||
<h4><strong>19. 30 Ondan biri.</strong></h4>
|
||||
<h4><strong>20. 30 Siziň
|
||||
üçin, körpeler! </strong></h4>
|
||||
<h4><strong>21. 00 Watan.</strong></h4>
|
||||
<h4><strong>21. 30 Ýaşlyk
|
||||
agşamy.</strong></h4>
|
||||
<h4><strong>23. 00 Watan.</strong></h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="miras-timetable-content" class="tab-pane fade " role="tabpanel">
|
||||
<div class="tpl-block-list tpl-component-timetabledata" id="nc-block-d8d73d0a4d99743e0a316ac704ba2b02">
|
||||
<style>#myTab-timetable-content table>tbody>tr:nth-of-type(odd){
|
||||
background: none;
|
||||
}
|
||||
#myTab-timetable-content table>tbody>tr:nth-of-type(even){
|
||||
background-color: #f4f5f4;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 20px;
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
table>tbody>tr>td>p{
|
||||
font-family: SourceSansRegular;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="table-wrap mt-40">
|
||||
<div class="table-responsive">
|
||||
|
||||
<h4><strong>06:55 Lebzim-ygrarym, namysym Watan!</strong></h4>
|
||||
<h4><strong>07:00 Watan.</strong></h4>
|
||||
<h4><strong>07:30 Medeni miras.</strong></h4>
|
||||
<h4><strong>09:00 Watan.</strong></h4>
|
||||
<h4><strong>09:30 Rowaçlygyň waspy.</strong></h4>
|
||||
<h4><strong>10:30 Sungat gözellikleri.</strong></h4>
|
||||
<h4><strong>11:30 Sungat äleminde.</strong></h4>
|
||||
<h4><strong>12:00 Watan.</strong></h4>
|
||||
<h4><strong>12:30 Sungat söhbeti.</strong></h4>
|
||||
<h4><strong>13:30 Çeper film. “Hazyna
|
||||
gözleýjiler”</strong></h4>
|
||||
<h4><strong>14:30 Halypalar ýoly bilen.</strong></h4>
|
||||
<h4><strong>15:00 Watan.</strong></h4>
|
||||
<h4><strong>15:30 Medeni miras.</strong></h4>
|
||||
<h4><strong>16:00-18:00 ORT.</strong></h4>
|
||||
<h4><strong>18:00 Berkarar Watanym Türkmenistanym.</strong></h4>
|
||||
<h4><strong>19:00 Edebim mertebäm.</strong></h4>
|
||||
<h4><strong>20:00 Rowaçly Watan. Bagtyýarlyk
|
||||
ýoly bilen.</strong></h4>
|
||||
<h4><strong>21:00 Watan.</strong></h4>
|
||||
<h4><strong>21:30 Çeper film. “Maňa işiň
|
||||
düşmesin”</strong></h4>
|
||||
<h4><strong>22:30 Sungatym ýürek owazym.</strong></h4>
|
||||
<h4><strong>23:00 Watan. </strong></h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="turkmenistan-timetable-content" class="tab-pane fade" role="tabpanel">
|
||||
</div>
|
||||
<div id="owaz-timetable-content" class="tab-pane fade" role="tabpanel">
|
||||
<div class="tpl-block-list tpl-component-timetabledata" id="nc-block-a44166e528724b7f1f56ef70ab83e410">
|
||||
<style>#myTab-timetable-content table>tbody>tr:nth-of-type(odd){
|
||||
background: none;
|
||||
}
|
||||
#myTab-timetable-content table>tbody>tr:nth-of-type(even){
|
||||
background-color: #f4f5f4;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 20px;
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
table>tbody>tr>td>p{
|
||||
font-family: SourceSansRegular;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="table-wrap mt-40">
|
||||
<div class="table-responsive">
|
||||
|
||||
<h4><strong>“Halkyň sazy, kalbymyň owazy”</strong></h4>
|
||||
<h4><strong>“Şirin owazlar”</strong></h4>
|
||||
<h4><strong>“Saýrak bilbiller”</strong></h4>
|
||||
<h4><strong>“Saýlanan aýdymlar”</strong></h4>
|
||||
<h4><strong>“Biziň bilen bile”</strong></h4>
|
||||
<h4><strong>“Hoş owazly nagmalar”</strong></h4>
|
||||
<h4><strong>“Aýdymlar çemeni”</strong></h4>
|
||||
<h4><strong>“Gel dutarym sözleşeli”</strong></h4>
|
||||
<h4><strong>Şekile siňen owazlar.</strong></h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ashgabat-timetable-content" class="tab-pane fade" role="tabpanel">
|
||||
<div class="tpl-block-list tpl-component-timetabledata" id="nc-block-0a2493d80c7fba9d050c033d12f2f756">
|
||||
<style>#myTab-timetable-content table>tbody>tr:nth-of-type(odd){
|
||||
background: none;
|
||||
}
|
||||
#myTab-timetable-content table>tbody>tr:nth-of-type(even){
|
||||
background-color: #f4f5f4;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 20px;
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
table>tbody>tr>td>p{
|
||||
font-family: SourceSansRegular;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="table-wrap mt-40">
|
||||
<div class="table-responsive">
|
||||
|
||||
<h4><strong>06:55. Berkararlyk mukamy</strong></h4>
|
||||
<h4><strong>07:00. Habarlar</strong></h4>
|
||||
<h4><strong>07:15. Ýol hereketiniň howpsuzlygy-
|
||||
ömrümiziň rahatlygy</strong></h4>
|
||||
<h4><strong>09:00. Habarlar</strong></h4>
|
||||
<h4><strong>09:15. Ýol hereketiniň howpsuzlygy-
|
||||
ömrümiziň rahatlygy</strong></h4>
|
||||
<h4><strong>11:00. Habarlar</strong></h4>
|
||||
<h4><strong>11:15. Ýol hereketiniň howpsuzlygy-
|
||||
ömrümiziň rahatlygy</strong></h4>
|
||||
<h4><strong>13:00. Habarlar</strong></h4>
|
||||
<h4><strong>13:15. Ýol hereketiniň howpsuzlygy-
|
||||
ömrümiziň rahatlygy</strong></h4>
|
||||
<h4><strong>15:00. Habarlar</strong></h4>
|
||||
<h4><strong>15:15. Ýol hereketiniň howpsuzlygy-
|
||||
ömrümiziň rahatlygy</strong></h4>
|
||||
<h4><strong>17:00. Habarlar</strong></h4>
|
||||
<h4><strong>17:15. Ýol hereketiniň howpsuzlygy -
|
||||
ömrümiziň rahatlygy</strong></h4>
|
||||
<h4><strong>19:00. Habarlar</strong></h4>
|
||||
<h4><strong>21:00. Habarlar</strong></h4>
|
||||
<h4><strong>22:30. Habarlar</strong></h4>
|
||||
<h4><strong>Syýahat</strong></h4>
|
||||
<h4><strong>Ylym we bilim</strong></h4>
|
||||
<h4><strong>Medeniýet</strong></h4>
|
||||
<h4><strong>Ykdysadyýet</strong></h4>
|
||||
<h4><strong>Syýasat</strong></h4>
|
||||
<h4><strong>Saglyk</strong></h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="sport-timetable-content" class="tab-pane fade" role="tabpanel">
|
||||
<div class="tpl-block-list tpl-component-timetabledata" id="nc-block-83e6162b0bfdc176f9014347f2adcf17">
|
||||
<style>#myTab-timetable-content table>tbody>tr:nth-of-type(odd){
|
||||
background: none;
|
||||
}
|
||||
#myTab-timetable-content table>tbody>tr:nth-of-type(even){
|
||||
background-color: #f4f5f4;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 20px;
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
table>tbody>tr>td>p{
|
||||
font-family: SourceSansRegular;
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="table-wrap mt-40">
|
||||
<div class="table-responsive">
|
||||
|
||||
<h4><strong>07:00 “Sport habarlary” </strong></h4>
|
||||
<h4><strong>09:00 “Sport habarlary” </strong></h4>
|
||||
<h4><strong>12:00 “Sport habarlary” </strong></h4>
|
||||
<h4><strong>15:00 “Sport habarlary” </strong></h4>
|
||||
<h4><strong>21:00 “Sport habarlary” </strong></h4>
|
||||
<h4><strong>23:00 “Sport habarlary” </strong></h4>
|
||||
<h4><strong>“Saglyk ýoly” </strong></h4>
|
||||
<h4><strong>“Sport äleminde” (Göni
|
||||
ýaýlym) </strong></h4>
|
||||
<h4><strong>Futbol boýunça geçirilen
|
||||
halkara ýaryşdan taýýarlanan
|
||||
reportaž. </strong></h4>
|
||||
<h4><strong>“Olimpiýaçylar”</strong></h4>
|
||||
<h4><strong>"Behişdi bedewler"</strong></h4>
|
||||
<h4><strong>“Sport tehnologiýalary” </strong></h4>
|
||||
<h4><strong>Basketbol sporty boýunça
|
||||
taýýarlanan reportaž (NBA)</strong></h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<div class="col-lg-12 col-md-12">
|
||||
@foreach($shows as $tmFilm)
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="top-part">
|
||||
<a href="#">
|
||||
<img src="{{ asset ('uploads/'.$tmFilm->img_url) }}" alt = "{{ $tmFilm->alt }}">
|
||||
<div class="best-movies-overlay">
|
||||
<div class="best-movies-overlay-text">
|
||||
<div class="overlay-text">
|
||||
<span class="text-center">
|
||||
<h4>"{{ $tmFilm -> name }}"</h4>
|
||||
<p>{{ $tmFilm -> description }}</p>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-bottom-shadow"></div>
|
||||
<span class="view-counter" style="font-size: 22px !important;"><i class="icon-eye"></i>
|
||||
{{ $tmFilm -> view }}</span>
|
||||
<a href="{{ $tmFilm -> video_url }}" class="play-button"><i class="fa fa-play-circle-o"
|
||||
download></i></a>
|
||||
<a href="#" class="download-button"><i class="fa fa-download"></i></a>
|
||||
<span class="tv-project-title text-center out fontBold" style="font-size: 25px;">"{{
|
||||
$tmFilm -> name }}"</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="showmore-button text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<a href="#" class="btn btn-default fontRegular">Doly görkez</a>
|
||||
</div>
|
||||
|
|
@ -27,4 +27,6 @@ Route::group([
|
|||
CRUD::resource('description', 'DescriptionCrudController');
|
||||
CRUD::resource('page_ad', 'PageAdCrudController');
|
||||
CRUD::resource('pagead', 'PageAdCrudController');
|
||||
CRUD::resource('page', 'PageCrudController');
|
||||
CRUD::resource('programme', 'ProgrammeCrudController');
|
||||
}); // this should be the absolute last line of this file
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
// Home
|
||||
Breadcrumbs::for('main', function ($trail) {
|
||||
$trail->push('Baş sahypa', url('http://www.turkmentv.gov.tm/'));
|
||||
$trail->push('Baş sahypa', route('homeWeb'));
|
||||
});
|
||||
Breadcrumbs::for('home', function ($trail) {
|
||||
$trail->parent('main');
|
||||
|
|
@ -44,4 +44,4 @@ Breadcrumbs::for('category', function ($trail, $category) {
|
|||
Breadcrumbs::for('material', function ($trail, $material) {
|
||||
$trail->parent('category', $material->category);
|
||||
$trail->push($material->title, route('material', $material->id));
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -21,6 +21,10 @@ Auth::routes();
|
|||
Route::get('/', 'HomeController@indexWeb')->name('homeWeb');
|
||||
Route::get('/page/{id}', 'HomeController@menuLinkWeb')->name('menuLinkWeb');
|
||||
|
||||
Route::get('/news', 'HomeController@newsList')->name('newsList');
|
||||
Route::get('/news/{id}', 'HomeController@getNews')->name('getNews');
|
||||
Route::get('/film/{id}', 'HomeController@getFilm')->name('getFilm');
|
||||
|
||||
// ** ------- WEB -------- ** //
|
||||
|
||||
Route::get('/video_portal', 'HomeController@index')->name('home');
|
||||
|
|
|
|||