2017-09-14 22:21:00 +03:00
|
|
|
@extends('layouts.modules')
|
|
|
|
|
|
|
|
@section('title', trans_choice('general.modules', 2))
|
|
|
|
|
2018-04-25 11:31:49 +03:00
|
|
|
@section('new_button')
|
2020-01-09 12:16:33 +03:00
|
|
|
<span>
|
2019-11-16 10:21:14 +03:00
|
|
|
<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>
|
2020-01-09 12:16:33 +03:00
|
|
|
<span>
|
2019-11-16 10:21:14 +03:00
|
|
|
<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>
|
2018-04-25 11:31:49 +03:00
|
|
|
@endsection
|
|
|
|
|
2017-09-14 22:21:00 +03:00
|
|
|
@section('content')
|
|
|
|
@include('partials.modules.bar')
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="row">
|
2019-12-20 14:57:41 +03:00
|
|
|
<div class="col-xs-6 col-sm-6">
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="float-left">
|
|
|
|
<h3>{{ $module->name }}</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-09-14 12:17:25 +03:00
|
|
|
|
2019-12-20 14:57:41 +03:00
|
|
|
<div class="col-xs-6 col-sm-6">
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="float-right">
|
2018-09-14 12:17:25 +03:00
|
|
|
@for($i = 1; $i <= $module->vote; $i++)
|
2019-11-16 10:21:14 +03:00
|
|
|
<i class="fa fa-star fa-sm text-yellow"></i>
|
2018-09-14 12:17:25 +03:00
|
|
|
@endfor
|
|
|
|
@for($i = $module->vote; $i < 5; $i++)
|
2019-11-16 10:21:14 +03:00
|
|
|
<i class="fa fa-star-o fa-sm"></i>
|
2018-09-14 12:17:25 +03:00
|
|
|
@endfor
|
|
|
|
</div>
|
2017-12-06 15:57:38 +03:00
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="nav-wrapper pt-0">
|
|
|
|
<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>
|
|
|
|
@if ($module->installation)
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link mb-sm-2 mb-md-0" href="#installation" data-toggle="tab" aria-selected="false">
|
|
|
|
{{ trans('modules.tab.installation') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@if ($module->faq)
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link mb-sm-2 mb-md-0" href="#faq" data-toggle="tab" aria-selected="false">
|
|
|
|
{{ trans('modules.tab.faq') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@if ($module->changelog)
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link mb-sm-2 mb-md-0" href="#changelog" data-toggle="tab" aria-selected="false">
|
|
|
|
{{ trans('modules.tab.changelog') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link mb-sm-2 mb-md-0" href="#review" data-toggle="tab" aria-selected="false">
|
|
|
|
{{ trans('modules.tab.reviews') }} @if ($module->total_review) ({{ $module->total_review }}) @endif
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
2017-12-06 15:57:38 +03:00
|
|
|
<div class="tab-content">
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="tab-pane fade show active" id="description">
|
2017-12-06 15:57:38 +03:00
|
|
|
{!! $module->description !!}
|
2018-11-01 17:42:20 +03:00
|
|
|
|
2018-11-23 15:59:40 +03:00
|
|
|
@if($module->screenshots || $module->video)
|
2019-12-26 14:11:39 +03:00
|
|
|
<akaunting-carousel :name="'{{ $module->name }}'" :height="'430px'" arrow="always"
|
2019-12-26 12:24:38 +03:00
|
|
|
@if($module->video)
|
|
|
|
@php
|
|
|
|
if (strpos($module->video->link, '=') !== false) {
|
|
|
|
$code = explode('=', $module->video->link);
|
|
|
|
$code[1]= str_replace('&list', '', $code[1]);
|
|
|
|
}
|
|
|
|
@endphp
|
|
|
|
:video="'{{ $code[1] }}'"
|
|
|
|
@endif
|
|
|
|
:screenshots="{{ json_encode($module->screenshots) }}">
|
|
|
|
</akaunting-carousel>
|
2018-11-01 17:42:20 +03:00
|
|
|
@endif
|
2017-12-06 15:57:38 +03:00
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
@if ($module->installation)
|
|
|
|
<div class="tab-pane fade" id="installation">
|
|
|
|
{!! $module->installation !!}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($module->faq)
|
|
|
|
<div class="tab-pane fade" id="faq">
|
|
|
|
{!! $module->faq !!}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($module->changelog)
|
|
|
|
<div class="tab-pane fade" id="changelog">
|
|
|
|
{!! $module->changelog !!}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="tab-pane fade" id="review">
|
|
|
|
<div id="reviews" class="clearfix" v-html="reviews">
|
2018-09-20 18:35:24 +03:00
|
|
|
@if(!$module->reviews)
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="text-center">
|
|
|
|
<strong>
|
|
|
|
{{ trans('modules.reviews.na') }}
|
|
|
|
</strong>
|
|
|
|
</div>
|
2018-09-14 12:17:25 +03:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
2019-12-20 14:57:41 +03:00
|
|
|
<div class="card-footer mx--4 mt-4 mb--4">
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-right">
|
|
|
|
@if (!empty($module->review_action))
|
|
|
|
<a href="{{ $module->review_action }}" class="btn btn-success" target="_blank">
|
|
|
|
{{ trans('modules.reviews.button.add') }}
|
|
|
|
</a>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="col-md-4">
|
|
|
|
<h3>{{ trans_choice('general.actions', 1) }}</h3>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="text-center">
|
|
|
|
<strong>
|
|
|
|
<div class="text-xl">
|
2018-04-26 13:21:43 +03:00
|
|
|
@if ($module->price == '0.0000')
|
|
|
|
{{ trans('modules.free') }}
|
|
|
|
@else
|
2018-12-22 18:04:16 +03:00
|
|
|
{!! $module->price_prefix !!}
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2018-05-12 13:44:07 +03:00
|
|
|
@if (isset($module->special_price))
|
2019-11-29 11:09:11 +03:00
|
|
|
<del class="text-danger">{{ $module->price }}</del>
|
2018-05-12 13:44:07 +03:00
|
|
|
{{ $module->special_price }}
|
|
|
|
@else
|
|
|
|
{{ $module->price }}
|
|
|
|
@endif
|
2018-12-22 18:04:16 +03:00
|
|
|
{!! $module->price_suffix !!}
|
2018-04-26 13:21:43 +03:00
|
|
|
@endif
|
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</strong>
|
2017-12-06 15:57:38 +03:00
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2017-12-06 15:57:38 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card-footer">
|
|
|
|
@if ($installed)
|
|
|
|
@permission('delete-modules-item')
|
2017-12-06 15:57:38 +03:00
|
|
|
<a href="{{ url('apps/' . $module->slug . '/uninstall') }}" class="btn btn-block btn-danger">{{ trans('modules.button.uninstall') }}</a>
|
2019-11-16 10:21:14 +03:00
|
|
|
@endpermission
|
|
|
|
|
|
|
|
@permission('update-modules-item')
|
2017-12-06 15:57:38 +03:00
|
|
|
@if ($enable)
|
|
|
|
<a href="{{ url('apps/' . $module->slug . '/disable') }}" class="btn btn-block btn-warning">{{ trans('modules.button.disable') }}</a>
|
|
|
|
@else
|
|
|
|
<a href="{{ url('apps/' . $module->slug . '/enable') }}" class="btn btn-block btn-success">{{ trans('modules.button.enable') }}</a>
|
|
|
|
@endif
|
2019-11-16 10:21:14 +03:00
|
|
|
@endpermission
|
|
|
|
@else
|
|
|
|
@permission('create-modules-item')
|
2017-12-06 15:57:38 +03:00
|
|
|
@if ($module->install)
|
2019-11-20 17:11:35 +03:00
|
|
|
<button type="button" @click="onInstall('{{ $module->action_url }}', '{{ $module->name }}', '{{ $module->version }}')" class="btn btn-success btn-block" id="install-module">
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ trans('modules.install') }}
|
2019-11-20 17:11:35 +03:00
|
|
|
</button>
|
2017-12-06 15:57:38 +03:00
|
|
|
@else
|
2019-11-16 10:21:14 +03:00
|
|
|
<a href="{{ $module->action_url }}" class="btn btn-success btn-block" target="_blank">
|
|
|
|
{{ trans('modules.buy_now') }}
|
|
|
|
</a>
|
2017-12-06 15:57:38 +03:00
|
|
|
@endif
|
2019-11-16 10:21:14 +03:00
|
|
|
@endpermission
|
2019-11-29 11:09:11 +03:00
|
|
|
@endif
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
@if ($module->purchase_faq)
|
|
|
|
<div class="text-center mt-3">
|
|
|
|
<a href="#" @click="onShowFaq" id="button-purchase-faq">{{ trans('modules.tab.faq')}}</a>
|
|
|
|
</div>
|
|
|
|
@endif
|
2017-12-06 15:57:38 +03:00
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<h3>{{ trans('modules.about') }}</h3>
|
2018-11-30 17:24:03 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card">
|
2019-12-20 12:12:57 +03:00
|
|
|
<table class="table">
|
2019-11-16 10:21:14 +03:00
|
|
|
<tbody>
|
|
|
|
@if ($module->vendor_name)
|
2019-12-20 12:12:57 +03:00
|
|
|
<tr class="row">
|
|
|
|
<th class="col-5">{{ trans_choice('general.developers', 1) }}</th>
|
|
|
|
<td class="col-7 text-right"><a href="{{ url('apps/vendors/' . $module->vendor->slug) }}">{{ $module->vendor_name }}</a></td>
|
2019-11-16 10:21:14 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@if ($module->version)
|
2019-12-20 12:12:57 +03:00
|
|
|
<tr class="row">
|
|
|
|
<th class="col-5">{{ trans('footer.version') }}</th>
|
|
|
|
<td class="col-7 text-right">{{ $module->version }}</td>
|
2019-11-16 10:21:14 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@if ($module->created_at)
|
2019-12-20 12:12:57 +03:00
|
|
|
<tr class="row">
|
|
|
|
<th class="col-5">{{ trans('modules.added') }}</th>
|
|
|
|
<td class="col-7 text-right long-texts">@date($module->created_at)</td>
|
2019-11-16 10:21:14 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@if ($module->updated_at)
|
2019-12-20 12:12:57 +03:00
|
|
|
<tr class="row">
|
|
|
|
<th class="col-5">{{ trans('modules.updated') }}</th>
|
|
|
|
<td class="col-7 text-right">{{ Date::parse($module->updated_at)->diffForHumans() }}</td>
|
2019-11-16 10:21:14 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@if ($module->compatibility)
|
2019-12-20 12:12:57 +03:00
|
|
|
<tr class="row">
|
|
|
|
<th class="col-5">{{ trans('modules.compatibility') }}</th>
|
|
|
|
<td class="col-7 text-right">{{ $module->compatibility }}</td>
|
2019-11-16 10:21:14 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@if ($module->category)
|
2019-12-20 12:12:57 +03:00
|
|
|
<tr class="row">
|
|
|
|
<th class="col-5">{{ trans_choice('general.categories', 1) }}</th>
|
|
|
|
<td class="col-7 text-right"><a href="{{ url('apps/categories/' . $module->category->slug) }}">{{ $module->category->name }}</a></td>
|
2019-11-16 10:21:14 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
2019-12-20 12:12:57 +03:00
|
|
|
<tr class="row">
|
|
|
|
<th class="col-5">{{ trans('modules.documentation') }}</th>
|
2019-11-16 10:21:14 +03:00
|
|
|
@if ($module->documentation)
|
2019-12-20 12:12:57 +03:00
|
|
|
<td class="col-7 text-right">
|
2019-11-16 10:21:14 +03:00
|
|
|
<a class="font-weight-bold" href="{{ url('apps/docs/' . $module->slug) }}">{{ trans('modules.view') }}</a>
|
|
|
|
</td>
|
|
|
|
@else
|
2019-12-20 12:12:57 +03:00
|
|
|
<th class="col-7 text-right">{{ trans('general.na') }}</th>
|
2019-11-16 10:21:14 +03:00
|
|
|
@endif
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-07 18:56:00 +03:00
|
|
|
|
|
|
|
@if ($module->purchase_faq)
|
2019-11-16 10:21:14 +03:00
|
|
|
<akaunting-modal :show="faq">
|
|
|
|
<template #modal-content>
|
|
|
|
{!! $module->purchase_faq !!}
|
|
|
|
</template>
|
|
|
|
</akaunting-modal>
|
2018-11-07 18:56:00 +03:00
|
|
|
@endif
|
2019-11-20 17:11:35 +03:00
|
|
|
|
|
|
|
@if ($module->install)
|
|
|
|
<akaunting-modal :show="installation.show"
|
|
|
|
:title="'{{ trans('modules.installation.header') }}'"
|
|
|
|
@cancel="installation.show = false">
|
|
|
|
<template #modal-body>
|
|
|
|
<div class="modal-body">
|
|
|
|
<el-progress :text-inside="true" :stroke-width="24" :percentage="installation.total" :status="installation.status"></el-progress>
|
|
|
|
|
|
|
|
<div id="progress-text" v-html="installation.html"></div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<template #card-footer>
|
|
|
|
<span></span>
|
|
|
|
</template>
|
|
|
|
</akaunting-modal>
|
|
|
|
@endif
|
2017-09-14 22:21:00 +03:00
|
|
|
@endsection
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
@push('scripts_start')
|
2017-09-14 22:21:00 +03:00
|
|
|
<script type="text/javascript">
|
2019-11-16 10:21:14 +03:00
|
|
|
var app_slug = "{{ $module->slug }}";
|
2017-09-14 22:21:00 +03:00
|
|
|
</script>
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
<script src="{{ asset('public/js/modules/item.js?v=' . version('short')) }}"></script>
|
2017-11-13 21:55:15 +03:00
|
|
|
@endpush
|