v2 first commit

This commit is contained in:
denisdulici
2019-11-16 10:21:14 +03:00
parent 5b23e9c2c4
commit 6d50fa8442
3075 changed files with 3451681 additions and 65594 deletions

View File

@@ -3,27 +3,36 @@
@section('title', trans_choice('general.modules', 2))
@section('new_button')
<span class="new-button"><a href="{{ url('apps/token/create') }}" class="btn btn-success btn-sm"><span class="fa fa-key"></span> &nbsp;{{ trans('modules.api_token') }}</a></span>
<span class="new-button"><a href="{{ url('apps/my') }}" class="btn btn-default btn-sm"><span class="fa fa-user"></span> &nbsp;{{ trans('modules.my_apps') }}</a></span>
<span class="new-button">
<a href="{{ route('apps.api-key.create') }}" class="btn btn-white btn-sm header-button-top">
<span class="fa fa-key"></span> &nbsp;{{ trans('modules.api_key') }}
</a>
</span>
<span class="new-button">
<a href="{{ route('apps.my.index') }}" class="btn btn-white btn-sm header-button-bottom">
<span class="fa fa-user"></span> &nbsp;{{ trans('modules.my_apps') }}
</a>
</span>
@endsection
@section('content')
@include('partials.modules.bar')
<div class="row module">
<div class="col-md-12">
<div class="col-md-8 no-padding-left">
<div class="content-header no-padding-left">
<h3>{{ $module->name }}</h3>
</div>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#description" data-toggle="tab" aria-expanded="true">{{ trans('general.description') }}</a></li>
</ul>
<div class="row">
<div class="col-md-8">
<h3>{{ $module->name }}</h3>
<div class="nav-wrapper">
<ul class="nav nav-pills nav-fill flex-column flex-md-row" id="tabs-icons-text" role="tablist">
<li class="nav-item">
<a class="nav-link mb-sm-2 mb-md-0 active" href="#description" data-toggle="tab" aria-selected="false">{{ trans('general.description') }}</a>
</li>
</ul>
</div>
<div class="card shadow">
<div class="card-body">
<div class="tab-content">
<div class="tab-pane active" id="description">
<div class="tab-pane fade show active" id="description">
{!! $module->description !!}
@if($module->screenshots || $module->video)
@@ -31,24 +40,24 @@
<div class="carousel-inner">
@if($module->video)
@php
if (strpos($module->video->link, '=') !== false) {
$code = explode('=', $module->video->link);
$code[1]= str_replace('&list', '', $code[1]);
if (strpos($module->video->link, '=') !== false) {
$code = explode('=', $module->video->link);
$code[1]= str_replace('&list', '', $code[1]);
if (empty($status)) {
$status = 5;
} else {
$status = 1;
}
if (empty($status)) {
$status = 5;
} else {
$status = 1;
}
@endphp
<div class="item @if($status == 5) {{ 'active' }} @endif">
<iframe width="100%" height="410px" src="https://www.youtube-nocookie.com/embed/{{ $code[1] }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<div class="item @if($status == 5) {{ 'active' }} @endif">
<iframe width="100%" height="410px" src="https://www.youtube-nocookie.com/embed/{{ $code[1] }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<div class="image-description text-center">
{{ $module->name }}
<div class="image-description text-center">
{{ $module->name }}
</div>
</div>
</div>
@php } @endphp
@endif
@@ -67,14 +76,14 @@
<div class="carousel-navigation-message">
@if (($module->video && (count($module->screenshots) > 1)) || (!$module->video && (count($module->screenshots) > 1)))
<a href="#carousel-screenshot-generic" class="left carousel-control" role="button" data-slide="prev">
<i class="fa fa-chevron-left"></i>
<span class="sr-only">{{ trans('pagination.previous') }}</span>
</a>
<a href="#carousel-screenshot-generic" class="right carousel-control" role="button" data-slide="next">
<i class="fa fa-chevron-right"></i>
<span class="sr-only">{{ trans('pagination.next') }}</span>
</a>
<a href="#carousel-screenshot-generic" class="left carousel-control" role="button" data-slide="prev">
<i class="fa fa-chevron-left"></i>
<span class="sr-only">{{ trans('pagination.previous') }}</span>
</a>
<a href="#carousel-screenshot-generic" class="right carousel-control" role="button" data-slide="next">
<i class="fa fa-chevron-right"></i>
<span class="sr-only">{{ trans('pagination.next') }}</span>
</a>
@endif()
</div>
</div>
@@ -84,18 +93,15 @@
</div>
</div>
</div>
<div class="col-md-4">
<div class="content-header no-padding-left">
<h3>{{ trans_choice('general.actions', 1) }}</h3>
</div>
<div class="box box-success">
<div class="box-body">
<div id="countdown-pre-sale"></div>
<div class="text-center action">
<div style="margin: 10px; font-size: 24px;">
</div>
<div class="col-md-4">
<h3>{{ trans_choice('general.actions', 1) }}</h3>
<div class="card">
<div class="card-body">
<div id="countdown-pre-sale"></div>
<div class="text-center">
<strong>
<div class="text-xl">
@if ($module->price == '0.0000')
{{ trans('modules.free') }}
@else
@@ -109,145 +115,92 @@
{!! $module->price_suffix !!}
@endif
</div>
</div>
</strong>
</div>
<!-- /.box-body -->
</div>
<div class="box-footer">
@permission('create-modules-item')
<div class="card-footer">
@permission('create-modules-item')
@if ($module->install)
<a href="#" class="btn btn-warning btn-block" disabled="disabled">
{{ trans('modules.pre_sale') }}
</a>
<a href="#" class="btn btn-warning btn-block" disabled="disabled">
{{ trans('modules.pre_sale') }}
</a>
@else
<a href="{{ $module->action_url }}" class="btn btn-warning btn-block" target="_blank">
{{ trans('modules.pre_sale') }}
</a>
<a href="{{ $module->action_url }}" class="btn btn-warning btn-block" target="_blank">
{{ trans('modules.pre_sale') }}
</a>
@endif
@endpermission
@endpermission
@if ($module->purchase_faq)
</br>
@if ($module->purchase_faq)
<br>
<div class="text-center">
<a href="#" id="button-purchase-faq">{{ trans('modules.tab.faq')}}</a>
<a href="#" @click="onShowFaq" id="button-purchase-faq">{{ trans('modules.tab.faq')}}</a>
</div>
@endif
</div>
</div>
<h3>{{ trans('modules.about') }}</h3>
<div class="card">
<table class="table">
<tbody>
@if ($module->vendor_name)
<tr>
<th>{{ trans_choice('general.developers', 1) }}</th>
<td class="text-right"><a href="{{ url('apps/vendors/' . $module->vendor->slug) }}">{{ $module->vendor_name }}</a></td>
</tr>
@endif
</div>
<!-- /.box-footer -->
</div>
<!-- /.box -->
<div class="content-header no-padding-left">
<h3>{{ trans('modules.about') }}</h3>
</div>
<div class="box box-success">
<div class="box-body">
<table class="table table-striped">
<tbody>
@if ($module->vendor_name)
<tr>
<th>{{ trans_choice('general.developers', 1) }}</th>
<td class="text-right"><a href="{{ url('apps/vendors/' . $module->vendor->slug) }}">{{ $module->vendor_name }}</a></td>
</tr>
@endif
@if ($module->version)
<tr>
<th>{{ trans('footer.version') }}</th>
<td class="text-right">{{ $module->version }}</td>
</tr>
@endif
@if ($module->created_at)
<tr>
<th>{{ trans('modules.added') }}</th>
<td class="text-right">{{ Date::parse($module->created_at)->format($date_format) }}</td>
</tr>
@endif
@if ($module->updated_at)
<tr>
<th>{{ trans('modules.updated') }}</th>
<td class="text-right">{{ Date::parse($module->updated_at)->diffForHumans() }}</td>
</tr>
@endif
@if ($module->compatibility)
<tr>
<th>{{ trans('modules.compatibility') }}</th>
<td class="text-right">{{ $module->compatibility }}</td>
</tr>
@endif
@if ($module->category)
<tr>
<th>{{ trans_choice('general.categories', 1) }}</th>
<td class="text-right"><a href="{{ url('apps/categories/' . $module->category->slug) }}">{{ $module->category->name }}</a></td>
</tr>
@endif
</tbody>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
@if ($module->version)
<tr>
<th>{{ trans('footer.version') }}</th>
<td class="text-right">{{ $module->version }}</td>
</tr>
@endif
@if ($module->created_at)
<tr>
<th>{{ trans('modules.added') }}</th>
<td class="text-right">@date($module->created_at)</td>
</tr>
@endif
@if ($module->updated_at)
<tr>
<th>{{ trans('modules.updated') }}</th>
<td class="text-right">{{ Date::parse($module->updated_at)->diffForHumans() }}</td>
</tr>
@endif
@if ($module->compatibility)
<tr>
<th>{{ trans('modules.compatibility') }}</th>
<td class="text-right">{{ $module->compatibility }}</td>
</tr>
@endif
@if ($module->category)
<tr>
<th>{{ trans_choice('general.categories', 1) }}</th>
<td class="text-right"><a href="{{ url('apps/categories/' . $module->category->slug) }}">{{ $module->category->name }}</a></td>
</tr>
@endif
</tbody>
</table>
</div>
</div>
</div>
@if ($module->purchase_faq)
{!! $module->purchase_faq !!}
<akaunting-modal :show="faq.show">
<template #modal-content>
{!! $module->purchase_faq !!}
</template>
</akaunting-modal>
@endif
@endsection
@push('js')
<script src="{{ asset('public/js/lightbox/ekko-lightbox.js') }}"></script>
<script src="{{ asset('public/js/jquery/countdown/jquery.plugin.js') }}"></script>
<script src="{{ asset('public/js/jquery/countdown/jquery.countdown.js') }}"></script>
@if (language()->getShortCode() != 'en')
<script src="{{ asset('public/js/jquery/countdown/jquery.countdown-' . language()->getShortCode() . '.js') }}"></script>
@endif
@endpush
@push('css')
<link rel="stylesheet" href="{{ asset('public/css/ekko-lightbox.css') }}">
<link rel="stylesheet" href="{{ asset('public/css/countdown.css') }}">
@endpush
@push('stylesheet')
<style type="text/css">
.nav-tabs-custom img {
display: block;
max-width: 100%;
height: auto;
}
.text-center.action {
border-top: 1px solid #f4f4f4;
margin-top: 10px;
}
</style>
@endpush
@push('scripts')
@push('scripts_start')
<script type="text/javascript">
$(document).ready(function() {
$('.carousel').carousel({
interval: false,
keyboard: true
});
$('#countdown-pre-sale').countdown({
until: new Date({{ (int) $module->pre_sale_date->year }}, {{ (int) $module->pre_sale_date->month }} - 1, {{ (int) $module->pre_sale_date->day }})
});
});
$(document).on('click', '[data-toggle="lightbox"]', function(e) {
e.preventDefault();
$(this).ekkoLightbox();
});
@if ($module->purchase_faq)
$(document).on('click', '#button-purchase-faq', function (e) {
$('.app-faq-modal').modal('show');
});
@endif
var app_slug = "{{ $module->slug }}";
</script>
<script src="{{ asset('public/js/modules/item.js?v=' . version('short')) }}"></script>
@endpush