web changes
This commit is contained in:
parent
e92e206a4b
commit
71045e5ade
|
|
@ -3,6 +3,9 @@
|
|||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use App\Mail\SendMail;
|
||||
|
||||
use App\Models\Menu;
|
||||
use App\Models\Slider;
|
||||
use App\Models\News;
|
||||
|
|
@ -146,4 +149,27 @@ class WebController extends Controller
|
|||
'meta_description' => $page->meta_description,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function Contact(){
|
||||
|
||||
return view('web.contact')->with([
|
||||
'title' => 'Turkmen Tv | Habarlashyk',
|
||||
'keywords' => '',
|
||||
'meta_description' => '',
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
public function Send(Request $request){
|
||||
$data = array(
|
||||
'name' => $request->name,
|
||||
'message' => $request->message
|
||||
);
|
||||
|
||||
Mail::to('mahabatmudirligi@gmail.com')->send(new SendMail($data));
|
||||
return back()->with('success', 'Hatynyz Ustunlikli ugradyldy.');
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
|
||||
class SendMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public $data;
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
// return $this->view('view.name');
|
||||
return $this->from('shokki.a96@gmail.com')->subject('Turkmen Tv')->view('email_temp')->with('data', $this->data);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 961 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
|
|
@ -0,0 +1,3 @@
|
|||
<h1>{{ $data['name'] }} </h1>
|
||||
<p>{{ $data['message'] }}</p>
|
||||
<p>Turkmen Tv Contact Form Page</p>
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
@extends('web.layouts.app')
|
||||
@section('content')
|
||||
|
||||
<div class="tpl-block-list tpl-component-slider" id="nc-block-379f70cfb1d929103a499f6c117c4222">
|
||||
|
||||
<style>#owl-demo .item .carousel-caption p {
|
||||
font-weight: bold;
|
||||
line-height: 80px;
|
||||
text-align: left;
|
||||
font-size: 40px;
|
||||
text-shadow: 0.1em 0.1em 0.2em #006081a8 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container wrapper" style="padding-top: 100px !important;padding-bottom: 50px !important;">
|
||||
<div class="row" style="padding-top: 0">
|
||||
|
||||
|
||||
|
||||
<style type='text/css'>
|
||||
div.textarea {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h2 style="margin-top: 50px"><a href="" class="fontSemiBold">Habarlaşmak üçin <i class="fa fa-play-circle-o"></i></a></h2>
|
||||
<div class="contact-form">
|
||||
@if($message = Session::get('success'))
|
||||
<script>
|
||||
window.alert({{$message}});
|
||||
</script>
|
||||
@endif
|
||||
<form name='adminForm' method='post' action='{{ url("contact/send") }}' class="col-lg-6 col-lg-offset-3 col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-12">
|
||||
|
||||
{{ csrf_field() }}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="contact-email ">
|
||||
<span class='nc-field-caption' style='' id='nc_capfld_460'>Ady (*):</span>
|
||||
<input name='name' maxlength='255' type='text' class='form-control' id='contact-name'
|
||||
size='100' style='margin-top: 5px;' value='' /> </label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="contact-email">
|
||||
<span class='nc-field-caption' style='' id='nc_capfld_461'>Email (*):</span>
|
||||
<input name='email' maxlength='255' type='text' class='form-control' id='contact-name'
|
||||
size='100' style='margin-top: 5px;' data-format='email' value='' />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="contact-email">
|
||||
<span class='nc-field-caption' style='' id='nc_capfld_462'>Mowzuk (*):</span>
|
||||
<input name='subject' maxlength='255' type='text' class='form-control' id='contact-name'
|
||||
size='100' style='margin-top: 5px;' value='' /> </label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="contact-message">
|
||||
<span class='nc-field-caption' style='' id='nc_capfld_463'>Hat (*):</span>
|
||||
<textarea id='message' name='message' class='form-control' id='contact-message'
|
||||
rows='5' cols='100' style='margin-top: 5px;'></textarea> </label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-sm-12 col-xs-12">
|
||||
<input type="submit" class="btn btn-default" style="width: 100%; margin-top: 20px"
|
||||
value="Ugrat">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
|
@ -5,6 +5,33 @@
|
|||
<script src="{{ asset('assets/js/scripts.js')}}"></script>
|
||||
<script src="{{ asset('assets/hls.min.js')}}"></script>
|
||||
|
||||
|
||||
<script>
|
||||
var urlq = new URL(window.location.href);
|
||||
var query_string = urlq.search;
|
||||
var search_params = new URLSearchParams(query_string);
|
||||
var c = search_params.get('from');
|
||||
c == null ? 1 : c;
|
||||
|
||||
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch00'+ c +'.m3u8';
|
||||
if(Hls.isSupported()) {
|
||||
var video = document.getElementById('webtv-video');
|
||||
var hls = new Hls();
|
||||
hls.loadSource(video_source);
|
||||
hls.attachMedia(video);
|
||||
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
||||
video.play();
|
||||
});
|
||||
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
||||
video.src = video_source;
|
||||
video.addEventListener('canplay',function() {
|
||||
video.play();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
setInterval(function () {document.getElementById("nextq").click();}, 3500);
|
||||
|
|
@ -28,6 +55,8 @@ setInterval(function () {document.getElementById("nextq").click();}, 3500);
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function setupVar2(){
|
||||
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch002.m3u8';
|
||||
|
||||
|
|
@ -138,31 +167,7 @@ setInterval(function () {document.getElementById("nextq").click();}, 3500);
|
|||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var from = "";
|
||||
if (from == ""){
|
||||
var from = 1;
|
||||
}else{
|
||||
var from = "";
|
||||
}
|
||||
var video_source = 'https://alpha.tv.online.tm/legacyhls/ch00'+ from +'.m3u8';
|
||||
if(Hls.isSupported()) {
|
||||
var video = document.getElementById('webtv-video');
|
||||
var hls = new Hls();
|
||||
hls.loadSource(video_source);
|
||||
hls.attachMedia(video);
|
||||
hls.on(Hls.Events.MANIFEST_PARSED,function() {
|
||||
video.play();
|
||||
});
|
||||
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
||||
video.src = video_source;
|
||||
video.addEventListener('canplay',function() {
|
||||
video.play();
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<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>
|
||||
<li><img src="{{ asset('assets/img/phone.png') }}" style="height: 17px; display: inline-block; margin-top: -4px"> <a href="{{route('contact')}}" style="display: inline-block; font-family:SourceSansRegular;">Habarlaşmak üçin</a></li>
|
||||
<div class="dropdown" style="display: inline-block">
|
||||
<li style="color: #ffffff"><i class="icon-globe" style="display: inline-block"></i> <a class="dropbtn" style="display: inline-block;font-family:SourceSansRegular;" onclick="myDropdownFunc()">TKM</a></li>
|
||||
<div class="dropdown-content" id="myDropdown">
|
||||
|
|
|
|||
|
|
@ -45,13 +45,13 @@
|
|||
<h2><a href="" class = "fontSemiBold">Göni ýaýlym <i class="fa fa-play-circle-o"></i></a></h2>
|
||||
<div class="live-imgs text-left">
|
||||
<div class="">
|
||||
<a href="/" ><img src="{{ asset( 'assets/img/live-imgs/altyn.png' ) }}" alt=""></a>
|
||||
<a href="/page/6/?from=1" ><img src="{{ asset( 'assets/img/live-imgs/altyn.png' ) }}" alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="/" ><img src="{{ asset( 'assets/img/live-imgs/yaslyk.png' ) }}" alt=""></a>
|
||||
<a href="/page/6/?from=2" ><img src="{{ asset( 'assets/img/live-imgs/yaslyk.png' ) }}" alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="/"><img src="{{ asset( 'assets/img/live-imgs/miras.png' ) }}" alt=""></a>
|
||||
<a href="/page/6/?from=3"><img src="{{ asset( 'assets/img/live-imgs/miras.png' ) }}" alt=""></a>
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="/"><img src="{{ asset( 'assets/img/live-imgs/turkmenistan.png' ) }}" alt=""></a>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ Route::get('/news', 'WebController@newsList')->name('newsList');
|
|||
Route::get('/news/{id}', 'WebController@getNews')->name('getNews');
|
||||
Route::get('/film/{id}', 'WebController@getFilm')->name('getFilm');
|
||||
|
||||
Route::get('/contact', 'WebController@Contact')->name('contact');
|
||||
Route::post('/contact/send', 'WebController@Send')->name('send');
|
||||
|
||||
// ** ------- WEB -------- ** //
|
||||
|
||||
Route::group(['prefix' => 'video'],function (){
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit e92e206a4befaa1faba2350bfe56fa0d556d8735
|
||||
Loading…
Reference in New Issue