2019-05-11 00:27:49 +00:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
@section('breadcrumb')
|
|
|
|
|
{{ Breadcrumbs::render('material', $material) }}
|
2019-09-18 09:42:15 +00:00
|
|
|
@endsection
|
2019-05-11 00:27:49 +00:00
|
|
|
@section('content')
|
|
|
|
|
<div class="container live" style="padding-bottom: 100px">
|
2021-05-21 10:55:02 +00:00
|
|
|
<div class="platny-wrapper col-lg-12 col-md-12 col-sm-12 col-xs-12" style="overflow-x:hidden!important">
|
2019-05-11 00:27:49 +00:00
|
|
|
@include('layouts.left_menu')
|
|
|
|
|
<div id="redak-tc" class="col-md-9" >
|
|
|
|
|
<div class="for-padding">
|
2019-07-09 12:32:13 +00:00
|
|
|
<h2> {{$material->title}}</h2>
|
2019-05-11 00:27:49 +00:00
|
|
|
<div class="platny-inner-tab container one-platny">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
2021-05-21 10:55:02 +00:00
|
|
|
<div class="vplayer-wrapper col-lg-12 col-md-12 col-sm-12" style="overflow-x:hidden!important">
|
2021-10-20 21:24:19 +00:00
|
|
|
<video controls width="100%" poster="https://content.turkmentv.gov.tm/{{$material->banner_url}}">
|
|
|
|
|
<source src="https://content.turkmentv.gov.tm/{{$material->trailer_url}}">
|
2019-05-11 00:27:49 +00:00
|
|
|
</video>
|
|
|
|
|
<div class="like-wrapper" style="position: absolute; z-index: 8000; top: 0; left: 0; padding: 10px">
|
2019-05-13 11:40:38 +00:00
|
|
|
<span class="like-click" style="display: {{$liked?'none':'block'}}; position: relative; color: #ffffff; cursor: pointer"><i class="fa fa-heart-o"> {{$material->like}}</i> </span>
|
|
|
|
|
<span class="like-clicked counter-anim" style="position: absolute; color: #ffffff; width: 75px; top: 0; margin-top: 10px; display: {{$liked?'block':'none'}}"><i class="fa fa-heart liked"> {{$material->like}}</i> </span>
|
2019-05-11 00:27:49 +00:00
|
|
|
</div>
|
|
|
|
|
<span class="cost-cost">
|
2021-05-01 07:33:44 +00:00
|
|
|
<span>{{$material->price}} TMT</span>
|
|
|
|
|
<span>Möçberi: <i style="font-style: normal">{{$material->size}}</i> Mb</span>
|
|
|
|
|
</span>
|
2019-05-11 00:27:49 +00:00
|
|
|
<span class="eye-eye"><i class="fa fa-eye"></i> {{$material->view}}</span>
|
2019-05-29 23:51:38 +00:00
|
|
|
<span class="min-min"><i class="fa fa-clock-o"></i> {{$material->duration}} <i style="font-size: 12px; font-style: normal; font-weight: normal">@lang('content.min')</i></span>
|
2019-05-11 00:27:49 +00:00
|
|
|
</div>
|
2019-05-13 11:40:38 +00:00
|
|
|
<div class="movie-details col-lg-9 col-md-9">
|
|
|
|
|
@if(!empty($material->details))
|
|
|
|
|
@foreach(json_decode($material->details) as $detail)
|
|
|
|
|
<span><b>{{$detail->name}}</b> {{$detail->desc}}</span>
|
|
|
|
|
@endforeach
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
2021-05-21 10:55:02 +00:00
|
|
|
<div class="buy-button-wrapper col-lg-3 col-md-3" style="overflow-x:hidden!important">
|
2020-03-27 00:11:19 +00:00
|
|
|
@if(empty($order))
|
|
|
|
|
@if($subscribed == false)
|
2020-03-23 06:25:14 +00:00
|
|
|
<a href="{{route('buy',$material->id)}}" class="buy-button">@lang('content.buy')</a>
|
|
|
|
|
@else
|
|
|
|
|
<a href="{{route('download',$material->id)}}" class="buy-button">@lang('content.download')</a>
|
|
|
|
|
@endif
|
2019-05-11 00:27:49 +00:00
|
|
|
@else
|
2020-03-23 06:25:14 +00:00
|
|
|
<a href="{{route('download',$material->id)}}" class="buy-button">@lang('content.download')</a>
|
|
|
|
|
@endif
|
|
|
|
|
|
2019-05-11 00:27:49 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="movie-description col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
|
<h4>{{$material->title}}</h4>
|
|
|
|
|
<p>{{$material->description}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
2019-05-13 11:40:38 +00:00
|
|
|
@endsection
|
|
|
|
|
@section('footerScripts')
|
|
|
|
|
|
2019-07-13 10:23:15 +00:00
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$('.like-click').click(function () {
|
|
|
|
|
@auth
|
|
|
|
|
$.get("{{route('like',$material->id)}}",function(data){
|
|
|
|
|
//alert(data);
|
|
|
|
|
$('.like-click').css('display', 'none');
|
|
|
|
|
$('.like-click').siblings('.like-clicked').css('display', 'block');
|
|
|
|
|
$('.liked').html(' '+data)
|
|
|
|
|
})
|
|
|
|
|
@elseguest
|
|
|
|
|
window.location.href = "{{route('login')}}";
|
|
|
|
|
@endauth
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
2019-05-13 11:40:38 +00:00
|
|
|
|
|
|
|
|
|
2022-08-26 12:37:05 +00:00
|
|
|
@endsection
|