2019-01-30 18:39:39 +03:00
|
|
|
@extends('layouts.modules')
|
|
|
|
|
|
|
|
@section('title', trans_choice('general.modules', 2))
|
|
|
|
|
|
|
|
@section('new_button')
|
2019-11-16 10:21:14 +03:00
|
|
|
<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> {{ 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> {{ trans('modules.my_apps') }}
|
|
|
|
</a>
|
|
|
|
</span>
|
2019-01-30 18:39:39 +03:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
@include('partials.modules.bar')
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<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>
|
2019-01-30 18:39:39 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card shadow">
|
|
|
|
<div class="card-body">
|
2019-01-30 18:39:39 +03:00
|
|
|
<div class="tab-content">
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="tab-pane fade show active" id="description">
|
2019-01-30 18:39:39 +03:00
|
|
|
{!! $module->description !!}
|
|
|
|
|
|
|
|
@if($module->screenshots || $module->video)
|
|
|
|
<div id="carousel-screenshot-generic" class="carousel slide" data-ride="carousel">
|
|
|
|
<div class="carousel-inner">
|
|
|
|
@if($module->video)
|
|
|
|
@php
|
2019-11-16 10:21:14 +03:00
|
|
|
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;
|
|
|
|
}
|
2019-01-30 18:39:39 +03:00
|
|
|
@endphp
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<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>
|
2019-01-30 18:39:39 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="image-description text-center">
|
|
|
|
{{ $module->name }}
|
|
|
|
</div>
|
2019-01-30 18:39:39 +03:00
|
|
|
</div>
|
|
|
|
@php } @endphp
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@foreach($module->screenshots as $screenshot)
|
|
|
|
@php if (empty($status)) { $status = 5; } else { $status = 1; } @endphp
|
|
|
|
<div class="item @if($status == 5) {{ 'active' }} @endif">
|
|
|
|
<a href="{{ $screenshot->path_string }}" data-toggle="lightbox" data-gallery="{{ $module->slug}}">
|
|
|
|
<img class="img-fluid d-block w-100" src="{{ $screenshot->path_string }}" alt="{{ $screenshot->alt_attribute }}">
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="image-description text-center">
|
|
|
|
{{ $screenshot->description }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
<div class="carousel-navigation-message">
|
|
|
|
@if (($module->video && (count($module->screenshots) > 1)) || (!$module->video && (count($module->screenshots) > 1)))
|
2019-11-16 10:21:14 +03:00
|
|
|
<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>
|
2019-01-30 18:39:39 +03:00
|
|
|
@endif()
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</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">
|
2019-01-30 18:39:39 +03:00
|
|
|
@if ($module->price == '0.0000')
|
|
|
|
{{ trans('modules.free') }}
|
|
|
|
@else
|
|
|
|
{!! $module->price_prefix !!}
|
|
|
|
@if (isset($module->special_price))
|
|
|
|
<del>{{ $module->price }}</del>
|
|
|
|
{{ $module->special_price }}
|
|
|
|
@else
|
|
|
|
{{ $module->price }}
|
|
|
|
@endif
|
|
|
|
{!! $module->price_suffix !!}
|
|
|
|
@endif
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</strong>
|
2019-01-30 18:39:39 +03:00
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2019-01-30 18:39:39 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card-footer">
|
|
|
|
@permission('create-modules-item')
|
2019-01-30 18:39:39 +03:00
|
|
|
@if ($module->install)
|
2019-11-16 10:21:14 +03:00
|
|
|
<a href="#" class="btn btn-warning btn-block" disabled="disabled">
|
|
|
|
{{ trans('modules.pre_sale') }}
|
|
|
|
</a>
|
2019-01-30 18:39:39 +03:00
|
|
|
@else
|
2019-11-16 10:21:14 +03:00
|
|
|
<a href="{{ $module->action_url }}" class="btn btn-warning btn-block" target="_blank">
|
|
|
|
{{ trans('modules.pre_sale') }}
|
|
|
|
</a>
|
2019-01-30 18:39:39 +03:00
|
|
|
@endif
|
2019-11-16 10:21:14 +03:00
|
|
|
@endpermission
|
2019-01-30 18:39:39 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
@if ($module->purchase_faq)
|
|
|
|
<br>
|
2019-01-30 18:39:39 +03:00
|
|
|
<div class="text-center">
|
2019-11-16 10:21:14 +03:00
|
|
|
<a href="#" @click="onShowFaq" id="button-purchase-faq">{{ trans('modules.tab.faq')}}</a>
|
2019-01-30 18:39:39 +03:00
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
@endif
|
2019-01-30 18:39:39 +03:00
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2019-01-30 18:39:39 +03:00
|
|
|
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<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
|
|
|
|
@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>
|
2019-01-30 18:39:39 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if ($module->purchase_faq)
|
2019-11-16 10:21:14 +03:00
|
|
|
<akaunting-modal :show="faq.show">
|
|
|
|
<template #modal-content>
|
|
|
|
{!! $module->purchase_faq !!}
|
|
|
|
</template>
|
|
|
|
</akaunting-modal>
|
2019-01-30 18:39:39 +03:00
|
|
|
@endif
|
|
|
|
@endsection
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
@push('scripts_start')
|
2019-01-30 18:39:39 +03:00
|
|
|
<script type="text/javascript">
|
2019-11-16 10:21:14 +03:00
|
|
|
var app_slug = "{{ $module->slug }}";
|
2019-01-30 18:39:39 +03:00
|
|
|
</script>
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
<script src="{{ asset('public/js/modules/item.js?v=' . version('short')) }}"></script>
|
2019-01-30 18:39:39 +03:00
|
|
|
@endpush
|