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')
|
|
|
|
<span class="new-button"><a href="{{ url('apps/token/create') }}" class="btn btn-success btn-sm"><span class="fa fa-key"></span> {{ trans('modules.api_token') }}</a></span>
|
2018-05-29 14:06:39 +03:00
|
|
|
<span class="new-button"><a href="{{ url('apps/my') }}" class="btn btn-default btn-sm"><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')
|
|
|
|
|
2017-11-29 16:53:19 +03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="content-header no-padding-left">
|
|
|
|
<h3>{{ $title }}</h3>
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2017-11-29 16:53:19 +03:00
|
|
|
@if ($modules)
|
2018-09-20 11:16:56 +03:00
|
|
|
@foreach ($modules->data as $module)
|
2017-11-29 16:53:19 +03:00
|
|
|
@include('partials.modules.item')
|
|
|
|
@endforeach
|
2018-09-20 11:16:56 +03:00
|
|
|
<div class="col-md-12 no-padding-left">
|
|
|
|
<ul class="pager nomargin">
|
|
|
|
@if ($modules->current_page < $modules->last_page)
|
|
|
|
<li class="next"><a href="{{ url(request()->path()) }}?page={{ $modules->current_page + 1 }}" class="btn btn-default btn-sm">{{ trans('pagination.next') }}</a></li>
|
|
|
|
@endif
|
|
|
|
@if ($modules->current_page > 1)
|
|
|
|
<li class="previous"><a href="{{ url(request()->path()) }}?page={{ $modules->current_page - 1 }}" class="btn btn-default btn-sm">{{ trans('pagination.previous') }}</a></li>
|
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</div>
|
2017-11-29 16:53:19 +03:00
|
|
|
@else
|
2018-11-09 11:11:56 +03:00
|
|
|
@include('partials.modules.no_apps')
|
2017-11-29 16:53:19 +03:00
|
|
|
@endif
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
2018-09-20 11:16:56 +03:00
|
|
|
@endsection
|