akaunting/resources/views/modules/item/pre_sale.blade.php

167 lines
7.2 KiB
PHP
Raw Normal View History

2019-01-30 18:39:39 +03:00
@extends('layouts.modules')
@section('title', trans_choice('general.modules', 2))
@section('new_button')
2020-10-22 18:58:58 +03:00
<a href="{{ route('apps.api-key.create') }}" class="btn btn-white btn-sm">{{ trans('modules.api_key') }}</a>
<a href="{{ route('apps.my.index') }}" class="btn btn-white btn-sm">{{ trans('modules.my_apps') }}</a>
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">
<div class="row">
<div class="col-xs-12 col-sm-12">
<div class="float-left">
<h3>{{ $module->name }}</h3>
</div>
</div>
2019-11-16 10:21:14 +03:00
</div>
2019-01-30 18:39:39 +03:00
<div class="card">
2019-11-16 10:21:14 +03:00
<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 !!}
2020-01-21 18:13:29 +03:00
@if ($module->screenshots || $module->video)
<akaunting-carousel :name="'{{ $module->name }}'" :height="'430px'" arrow="always"
2020-01-21 18:13:29 +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>
2019-01-30 18:39:39 +03:00
@endif
</div>
</div>
</div>
</div>
2019-11-16 10:21:14 +03:00
</div>
2019-11-16 10:21:14 +03:00
<div class="col-md-4">
<h3>{{ trans_choice('general.actions', 1) }}</h3>
2020-03-14 16:15:29 +03:00
2019-11-16 10:21:14 +03:00
<div class="card">
<div class="card-body">
2020-08-26 17:28:46 +03:00
<akaunting-countdown id="countdown-pre-sale"
:year="{{ (int) $module->pre_sale_date->year }}"
:month="{{ (int) $module->pre_sale_date->month - 1 }}"
:date="{{ (int) $module->pre_sale_date->day }}"
></akaunting-countdown>
</div>
</div>
2020-08-26 17:28:46 +03:00
<div class="card">
<div class="card-body">
2019-11-16 10:21:14 +03:00
<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 !!}
2019-01-30 18:39:39 +03:00
@if (isset($module->special_price))
2019-11-29 11:09:11 +03:00
<del class="text-danger">{{ $module->price }}</del>
2019-01-30 18:39:39 +03:00
{{ $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">
2020-10-14 17:07:59 +03:00
@can('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
2020-10-14 17:07:59 +03:00
@endcan
2019-01-30 18:39:39 +03:00
2020-05-03 12:56:52 +03:00
@if (!empty($module->purchase_desc))
<div class="text-center mt-3">
{!! $module->purchase_desc !!}
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>
2020-03-14 16:15:29 +03:00
2019-11-16 10:21:14 +03:00
<div class="card">
<table class="table">
<tbody>
@if ($module->vendor_name)
<tr class="row">
<th class="col-5">{{ trans_choice('general.developers', 1) }}</th>
<td class="col-7 text-right"><a href="{{ route('apps.vendors.show', $module->vendor->slug) }}">{{ $module->vendor_name }}</a></td>
2019-11-16 10:21:14 +03:00
</tr>
@endif
@if ($module->version)
<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)
<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)
<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->categories)
<tr class="row">
<th class="col-5">{{ trans_choice('general.categories', (count($module->categories) > 1) ? 2 : 1) }}</th>
<td class="col-7 text-right">
@foreach ($module->categories as $module_category)
<a href="{{ route('apps.categories.show', $module_category->slug) }}">{{ $module_category->name }}</a> </br>
@endforeach
</td>
2019-11-16 10:21:14 +03:00
</tr>
@endif
</tbody>
</table>
2019-01-30 18:39:39 +03:00
</div>
</div>
</div>
@if ($module->purchase_faq)
2020-05-19 20:07:17 +03:00
<akaunting-modal :show="faq" modal-dialog-class="modal-md">
2019-11-16 10:21:14 +03:00
<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