47 lines
1.9 KiB
PHP
Raw Normal View History

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-21 18:13:29 +03:00
<span><a href="{{ route('apps.api-key.create') }}" class="btn btn-white btn-sm button-header-top"><span class="fa fa-key"></span> &nbsp;{{ trans('modules.api_key') }}</a></span>
<span><a href="{{ route('apps.my.index') }}" class="btn btn-white btn-sm button-header-top"><span class="fa fa-user"></span> &nbsp;{{ 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')
2020-01-21 18:13:29 +03:00
2020-03-14 16:15:29 +03:00
<h2>{{ $title }}</h2>
<div class="row">
@if ($modules)
@foreach ($modules->data as $module)
@if ($module->status_type == 'pre_sale')
@include('partials.modules.pre_sale')
@else
@include('partials.modules.item')
@endif
@endforeach
<div class="col-md-6 text-left">
@if ($modules->current_page > 1)
<a href="{{ url(request()->path()) }}?page={{ $modules->current_page - 1 }}" class="btn btn-white btn-sm button-header-top"><span class="fas fa-arrow-left"></span> &nbsp;{!! trans('pagination.previous') !!}</a>
@endif
</div>
<div class="col-md-6 text-right">
@if ($modules->current_page < $modules->last_page)
<a href="{{ url(request()->path()) }}?page={{ $modules->current_page + 1 }}" class="btn btn-white btn-sm button-header-top">{!! trans('pagination.next') !!}&nbsp; <span class="fas fa-arrow-right"></span> </a>
@endif
</div>
@else
<div class="col-md-12">
@include('partials.modules.no_apps')
</div>
@endif
</div>
2018-09-20 11:16:56 +03:00
@endsection
2019-11-20 17:45:19 +03:00
@push('scripts_start')
<script src="{{ asset('public/js/modules/apps.js?v=' . version('short')) }}"></script>
@endpush