WEB 29.03

This commit is contained in:
Bezirgen 2019-05-29 00:20:07 +05:00
parent 1b5607ef35
commit 39b8578575
45 changed files with 757 additions and 124 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -0,0 +1,77 @@
<?php
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 Backpack\CRUD\CrudPanel;
/**
* Class DescriptionCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class DescriptionCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\Description');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/description');
$this->crud->setEntityNameStrings('description', 'descriptions');
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
//$this->crud->setFromDb();
$this->crud->addColumns([
['name' => 'header','type' => 'text', 'lable' => 'Header'],
['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' => 'description','type' => 'summernote', 'lable' => 'Description'],
['name' => 'menu_id', 'type' => 'select', 'entity' => 'menu', 'attribute' =>'name', 'model' => 'App\Models\Menu',
'lable'=>'Menu'],
]);
// add asterisk for fields that are required in DescriptionRequest
$this->crud->setRequiredFields(StoreRequest::class, 'create');
$this->crud->setRequiredFields(UpdateRequest::class, 'edit');
}
public function store(StoreRequest $request)
{
// your additional operations before save here
$redirect_location = parent::storeCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
public function update(UpdateRequest $request)
{
// your additional operations before save here
$redirect_location = parent::updateCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
}

View File

@ -0,0 +1,92 @@
<?php
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\PageadRequest as StoreRequest;
use App\Http\Requests\PageadRequest as UpdateRequest;
use Backpack\CRUD\CrudPanel;
/**
* Class PageadCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class PageadCrudController extends CrudController
{
public function setup()
{
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
|--------------------------------------------------------------------------
*/
$this->crud->setModel('App\Models\Pagead');
$this->crud->setRoute(config('backpack.base.route_prefix') . '/pagead');
$this->crud->setEntityNameStrings('pagead', 'pageads');
/*
|--------------------------------------------------------------------------
| CrudPanel Configuration
|--------------------------------------------------------------------------
*/
// TODO: remove setFromDb() and manually define Fields and Columns
//$this->crud->setFromDb();
$this->crud->addColumns([
['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' => 'name','type' => 'text', 'lable' => 'Name'],
['name' => 'adv_type', 'type' => 'enum', 'label' => 'Adv Type'],
[ 'label' => "Image",
'name' => "img_url",
'type' => 'image',
'upload' => true,
'crop' => true, // set to true to allow cropping, false to disable
'aspect_ratio' => 2, // ommit or set to 0 to allow any aspect ratio
//'disk' => 'uploads', // in case you need to show images from a different disk
'prefix' => 'uploads/' // in case your db value is only the file name (no path), you can use this to prepend your path to the image src (in HTML), before it's shown to the user;
],
[ 'label' => "Poster images for video",
'name' => "poster_url",
'type' => 'image',
'upload' => true,
'crop' => true, // set to true to allow cropping, false to disable
'aspect_ratio' => 2, // ommit or set to 0 to allow any aspect ratio
//'disk' => 'uploads', // in case you need to show images from a different disk
'prefix' => 'uploads/' // in case your db value is only the file name (no path), you can use this to prepend your path to the image src (in HTML), before it's shown to the user;
],
['name' => 'video_url','type' => 'browse', 'lable' => 'Video'],
]);
// add asterisk for fields that are required in PageadRequest
$this->crud->setRequiredFields(StoreRequest::class, 'create');
$this->crud->setRequiredFields(UpdateRequest::class, 'edit');
}
public function store(StoreRequest $request)
{
// your additional operations before save here
$redirect_location = parent::storeCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
public function update(UpdateRequest $request)
{
// your additional operations before save here
$redirect_location = parent::updateCrud($request);
// your additional operations after save here
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
}

View File

@ -11,7 +11,9 @@ use App\Models\Slider;
use App\Models\News;
use App\Models\Show;
use App\Models\PageSlider;
use App\Models\Description;
use App\Models\Advertisement;
use App\Models\Pagead;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cookie;
@ -78,11 +80,21 @@ class HomeController extends Controller
$middleMenus = Menu::where('menu_type','middle')->get();
$menus = Menu::get();
$pageSliders = PageSlider::where('menu_id', $menu_id)->get();
$descriptions = Description::where('menu_id', $menu_id)->firstOrFail();
$tmFilms = Show::where('replace_type','tmFilm')->get();
$animations = Show::where('replace_type','animations')->get();
$pageNames = Menu::where('id', $menu_id)->firstOrFail();
$pageAds = Pagead::get();
return view('pageWeb')->with([
'topMenus' => $topMenus,
'middleMenus' => $middleMenus,
'menus' => $menus,
'pageSliders' => $pageSliders,
'pageNames' => $pageNames,
'descriptions' => $descriptions,
'pageAds' => $pageAds,
'tmFilms' => $tmFilms,
'animations' => $animations
]);
}

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class DescriptionRequest 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 [
//
];
}
}

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class PageAdRequest 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 [
//
];
}
}

View File

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class TextRequest 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 [
//
];
}
}

View File

@ -0,0 +1,57 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\CrudTrait;
class Description extends Model
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
protected $table = 'descriptions';
// protected $primaryKey = 'id';
// public $timestamps = false;
// protected $guarded = ['id'];
protected $fillable = ['header', 'description', 'menu_id'];
// protected $hidden = [];
// protected $dates = [];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
public function menu(){
return $this->belongsTo(Menu::class);
}
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}

View File

@ -37,6 +37,10 @@ class Menu extends Model
public function pagesliders(){
return $this->hasMany(PageSlider::class);
}
public function descriptions(){
return $this->hasMany(Description::class);
}
/*
|--------------------------------------------------------------------------
| SCOPES

55
app/Models/Pagead.php Normal file
View File

@ -0,0 +1,55 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\CrudTrait;
class Pagead extends Model
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
protected $table = 'pageads';
// protected $primaryKey = 'id';
// public $timestamps = false;
// protected $guarded = ['id'];
protected $fillable = ['name', 'adv_type', 'poster_url', 'img_url', 'video_url'];
// protected $hidden = [];
// protected $dates = [];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}

View File

@ -16,10 +16,13 @@ class CreatePageslidersTable extends Migration
$table->increments('id');
$table->string('alt')->nullable();
$table->longText('img_url')->nullable();
$table->unsignedBigInteger('menu_id');
$table->unsignedInteger('menu_id')->nullable();
$table->foreign('menu_id')->references('id')->on('menus');
$table->timestamps();
});
}
/**

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDescriptionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('descriptions', function (Blueprint $table) {
$table->increments('id');
$table->string('header');
$table->longText('description');
$table->unsignedInteger('menu_id');
$table->foreign('menu_id')->references('id')->on('menus');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('descriptions');
}
}

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePageadsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pageads', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->enum('adv_type',['image','video']);
$table->longText('poster_url')->nullable();
$table->longText('img_url')->nullable();
$table->longText('video_url')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('pageads');
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 682 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 501 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

View File

@ -1,156 +1,230 @@
@extends('web.layouts.app')
@if($pageNames->id != 5)
@section('content')
<div class="tpl-block-list tpl-component-mahslider" >
<div class="container-fluid header-carousel mahabat">
<div class="row">
<div class="slider-container">
<div class="slider-content">
@foreach($pageSliders as $pageSlider)
<div class="slider-single">
<img class="slider-single-image" src="{{ asset ($pageSlider -> img_url) }}" />
<div class="black-bg" style="z-index: -12;position: absolute; top: 0; background-color: black; height: 100%; width: 100%; margin-left: 50%; display: none;"></div>
</div>
@endforeach
<div class="tpl-block-list tpl-component-mahslider">
<div class="container-fluid header-carousel mahabat">
<div class="row">
<div class="slider-container">
<div class="slider-content">
@foreach($pageSliders as $pageSlider)
<div class="slider-single">
<img class="slider-single-image" src="{{ asset ($pageSlider -> img_url) }}" />
<div class="black-bg" style="z-index: -12;position: absolute; top: 0; background-color: black; height: 100%; width: 100%; margin-left: 50%; display: none;"></div>
</div>
<!-- NEXT PREV buttons -->
<a class="slider-left" href="javascript:void(0);"><i class="ti-arrow-circle-left"></i></a>
<a id="nextq" class="slider-right" href="javascript:void(0);"><i class="ti-arrow-circle-right"></i></a>
@endforeach
</div>
<!-- NEXT PREV buttons -->
<a class="slider-left" href="javascript:void(0);"><i class="ti-arrow-circle-left"></i></a>
<a id="nextq" class="slider-right" href="javascript:void(0);"><i class="ti-arrow-circle-right"></i></a>
</div>
</div>
</div>
</div>
<div class="container wrapper mahabat">
<div class="row" style="padding-top: 0">
@endsection
@endif
@section('content2')
@if($pageNames->id != 5)
<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="../../index.html" class = 'fontRegular'>Baş Sahypa</a></li><li class="active "><span class = 'fontRegular'>Mahabat Müdirligi</span></li> </ol>
<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 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'>"MAHABAT MÜDIRLIGI" <i class="fa fa-play-circle-o"></i></a></h2>
<div class="mahabat-content">
<p class = 'fontRegular'>Uytgedilen. Türkmenistanyň Telewideniýe, radiogepleşikler we kinematografiýa baradaky döwlet komitetiniň “Mahabat” müdirligi teleradioýaýlymlarda mahabat işlerini geçirmek üçin döredilen döwlet kärhanasydyr. Bu müdirliginiň esasy maksady bazar gurluşyny öwrenip, alyjylar bazaryny hyzmatlar we harytlar bilen kanagatlandyrmak ýoly arkaly peýda gazanmak bolup durýar. Kärhananyň öz ady görkezilen tugraly möhri, resmi kagyzy, şeýle hem beýleki nyşanlary bar. Kärhana doly hojalyk hasaplaşyk, öz-özüňi ödemek şertlerinde hereket edýär, öz işiniň netijesi boýunça, baglaşylan şertnamalar boýunça hyzmatdaşlaryň öňünde öz üstüne alan borçlarynyň ýerine ýetirilmegine jogapkärçilik çekýär, içerki bazarda maliýe amallaryny we beýleki geleşikleri baglaşýar. <br />
<br />
Mahabat müdirligi Türkmenistanda ilkinji gezek 3D animasiýa arkali “VR AMUL-HAZAR” atly wirtual oýny işläp taýýarlady. Bu wirtual oýun arkaly gelejegiň mediasy hökmünde tanalýan interaktiw media ilkinji ädim hökmünde görülýär. <br />
<br />
Teleýaýlymarda we radioýaýlymlarda mahabat ýerleşdirmek üçin müdirligiň wagtlara görä nyrhnamalary bar. Bu nyrhnamalar hem kärhananyň eýeçiligine görä tapawutlanýar. Müşderiler islegine görä, höüdrlenilýän wagtlara görä öz mahabat materiallaryny ýerleşdirip biler. <br />
<br />
Mahabat müdirligi müşderileriň islegine baglylykda mahabat materiallaryny taýýarlamak işinde hem baý tejribesi bar. 2D we 3D ölçegdäki animasion mahabatlarynyň dürli görnüşlerini taýýarlamak arkaly tapawutlanýar. <br />
<br />
Tele we radio ýaýlymlarda mahabat ýerleşdirmek üçin 493705 belgä jaň edip bilersiňiz!</p>
<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)
{!! $descriptions -> description !!}
@endif
</p>
</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'>Mahabatlar <i class="fa fa-play-circle-o"></i></a></h2>
<div class="container best-adver">
<div class="row">
<div class="col-lg-12 col-md-12">
<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>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="top-part">
<a href="mahabat/luchshaya-reklama_5.html">
<img src="../../netcat_files/19/72/Yenis.png">
<div class="best-adver-overlay">
<div class="best-adver-overlay-text">
<div class="overlay-text">
<span class="text-center"><h4>"Marynyň &quot;Ýeňiş&quot; tikin fabrigi"</h4> <h5></h5></span>
</div>
@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="turkmen-film/turkmen-film_6.html">
<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>
<div class="top-bottom-shadow"></div>
<a href="mahabat/luchshaya-reklama_5.html" class="play-button"><i class="fa fa-play-circle-o"></i></a>
<a href="../../netcat_files/19/72/Yenis.png" class="download-button"><i class="fa fa-download"></i></a>
<span class="tv-project-title text-center out fontBold">"Marynyň &quot;Ýeňiş&quot; tikin fabrigi"</span>
</a>
@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>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="top-part">
<a href="mahabat/luchshaya-reklama_6.html">
<img src="../../netcat_files/19/72/2.2_0.png">
<div class="best-adver-overlay">
<div class="best-adver-overlay-text">
<div class="overlay-text">
<span class="text-center"><h4>"Meniň dostum Meleguş"</h4> <h5>B. Annamow</h5></span>
</div>
</div>
</div>
<div class="top-bottom-shadow"></div>
<a href="mahabat/luchshaya-reklama_6.html" class="play-button"><i class="fa fa-play-circle-o"></i></a>
<a href="../../netcat_files/19/72/2.2_0.png" class="download-button"><i class="fa fa-download"></i></a>
<span class="tv-project-title text-center out fontBold">"Meniň dostum Meleguş"</span>
</a>
</div>
@elseif($pageNames->id == 5)
<div class="col-lg-12 col-md-12">
<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="novosti_145.html"><img src="../../netcat_files/15/65/E_rany__da_ary_i_ler_ministri.png"
style="width: 100%;"></a>
<h4 style="color: #05559a; margin-top: 10px;"><a href="novosti_145.html" class='fontSemiBold'>Türkmenistanyň
Prezidenti Eýranyň daşary işler ministrini kabul etdi</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;">Şu g&uuml;n hormatly
Prezidentimiz Gurbanguly Berdimuhamedow E&yacute;ran Yslam Respublikasynyň
daşary işler ministri Mohammad Jawad Zarifi kabul etdi.</span></p>
<p style="text-align: ju ...</p>
<h4 style=" font-weight: bold; line-height: 30px;" class='fontRegular'>13.05.2019</h4>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="top-part">
<a href="mahabat/luchshaya-reklama_7.html">
<img src="../../netcat_files/19/72/3.3.png">
<div class="best-adver-overlay">
<div class="best-adver-overlay-text">
<div class="overlay-text">
<span class="text-center"><h4>"Döwranyň başdan geçirmeleri"</h4> <h5>B. Annamow</h5></span>
</div>
</div>
</div>
<div class="top-bottom-shadow"></div>
<a href="mahabat/luchshaya-reklama_7.html" class="play-button"><i class="fa fa-play-circle-o"></i></a>
<a href="../../netcat_files/19/72/3.3.png" class="download-button"><i class="fa fa-download"></i></a>
<span class="tv-project-title text-center out fontBold">"Döwranyň başdan geçirmeleri"</span>
</a>
</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 class="col-lg-6 col-md-6 col-sm-6">
<a href="mahabat/luchshaya-reklama_8.html"><img src="../../netcat_files/19/72/4.4.png" alt="" style="width: 100%"></a>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<a href="mahabat/luchshaya-reklama_9.html"><img src="../../netcat_files/19/72/2.2.png" alt="" style="width: 100%"></a>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="top-part">
<a href="mahabat/luchshaya-reklama_10.html">
<img src="../../netcat_files/19/72/1.1.png">
<div class="best-adver-overlay">
<div class="best-adver-overlay-text">
<div class="overlay-text">
<span class="text-center"><h4>"Döwranyň başdan geçirmeleri"</h4> <h5>B. Annamow</h5></span>
</div>
</div>
</div>
</div>
<div class="top-bottom-shadow"></div>
<a href="mahabat/luchshaya-reklama_10.html" class="play-button"><i class="fa fa-play-circle-o"></i></a>
<a href="../../netcat_files/19/72/1.1.png" class="download-button"><i class="fa fa-download"></i></a>
<span class="tv-project-title text-center out fontBold">"Döwranyň başdan geçirmeleri"</span>
</a>
</div>
</div>
@else
</div>
</div>
@endif
</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>
</div></div> </div> </div>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -4,12 +4,14 @@
<li><a href="{{ backpack_url('category') }}"><i class="fa fa-list"></i> <span>{{ trans('admin.categories') }}</span></a></li>
<li><a href="{{ backpack_url('material') }}"><i class="fa fa-video-camera"></i> <span>{{ trans('admin.materials') }}</span></a></li>
<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><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('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('pagead') }}"><i class="fa fa-bookmark"></i> <span>Page Advertisements</span></a></li>
<li class="treeview">
<a href="#">
<i class="fa fa-home"></i>

View File

@ -2,6 +2,8 @@
@include('web.layouts.headerMenu')
@yield('content')
@yield('content2')
@yield('content3')
@include('web.layouts.footerMenu')
@include('web.layouts.footer')

View File

@ -323,6 +323,18 @@
padding: 20px 15px;
margin-left: -2px;
}
.overlay{
position: absolute;
top: 10px;
bottom: 0;
left: 10px;
right: 0;
height: calc(100% - 20px);
width: calc(100% - 20px);
opacity: 0;
transition: .5s ease;
background-color: #000000;
}
</style>
</head>
<body onload="pureJSCalendar.open('dd.MM.yyyy', 0, 0, 1, '2018-5-5', '2019-8-20', 'txtTest', 20)">

View File

@ -94,4 +94,6 @@
</ul>
</div>
</div>
</header>

View File

@ -23,4 +23,8 @@ Route::group([
CRUD::resource('news', 'NewsCrudController');
CRUD::resource('show', 'ShowCrudController');
CRUD::resource('pageslider', 'PageSliderCrudController');
CRUD::resource('text', 'TextCrudController');
CRUD::resource('description', 'DescriptionCrudController');
CRUD::resource('page_ad', 'PageAdCrudController');
CRUD::resource('pagead', 'PageAdCrudController');
}); // this should be the absolute last line of this file