2024-03-05 03:06:36 +01:00
|
|
|
@extends('frame')
|
|
|
|
|
|
|
|
@section('title', 'Pages')
|
|
|
|
|
|
|
|
@section('main-content')
|
2024-03-25 20:20:14 +01:00
|
|
|
<section class="book-index-header">
|
|
|
|
<div class="book-index-header-left">
|
2024-03-05 03:06:36 +01:00
|
|
|
{{ $result['paginate']['sort'] }}
|
|
|
|
Pages
|
|
|
|
</div>
|
2024-03-25 20:20:14 +01:00
|
|
|
<div class="book-index-header-right">
|
2024-03-05 03:06:36 +01:00
|
|
|
<a href="/dashboard/pages/all" title="view all pages">
|
|
|
|
<button>
|
2024-03-25 19:59:24 +01:00
|
|
|
<svg id="nav-menu-icon" class="icon">
|
2024-03-21 22:29:32 +01:00
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-folder"/>
|
|
|
|
</svg>
|
2024-03-05 03:06:36 +01:00
|
|
|
{{ $result['stats']['all'] }}
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
<a href="/dashboard/pages/published" title="view publised pages">
|
|
|
|
<button>
|
2024-03-25 19:59:24 +01:00
|
|
|
<svg id="nav-menu-icon" class="icon">
|
2024-03-21 22:29:32 +01:00
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-globe"/>
|
|
|
|
</svg>
|
2024-03-05 03:06:36 +01:00
|
|
|
{{ $result['stats']['published'] }}
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
<a href="/dashboard/pages/deleted" title="view deleted pages">
|
|
|
|
<button>
|
2024-03-25 19:59:24 +01:00
|
|
|
<svg id="nav-menu-icon" class="icon">
|
2024-03-21 22:29:32 +01:00
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-trash"/>
|
|
|
|
</svg>
|
2024-03-05 03:06:36 +01:00
|
|
|
{{ $result['stats']['deleted'] }}
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</section>
|
2024-03-25 20:20:14 +01:00
|
|
|
<section class="book-index-pages">
|
2024-03-05 03:06:36 +01:00
|
|
|
@foreach($result['pages'] as $page)
|
|
|
|
@php
|
|
|
|
$type = '';
|
|
|
|
$file = '';
|
|
|
|
isset($page['media'][0]['type']) ? $type = $page['media'][0]['type'] : $type = '';
|
|
|
|
isset($page['media'][0]['file']) ? $file = $page['media'][0]['file'] : $file = '';
|
|
|
|
@endphp
|
|
|
|
@if($type =='mp4')
|
|
|
|
<a href="/dashboard/page/edit/{{ $page['uuid'] }}" id="{{ $page['uuid'] }}" class="page-link">
|
|
|
|
<div class="page-video">
|
|
|
|
<video class="post-video" loop muted autoplay>
|
|
|
|
<source src="{{ $file }}" type="video/mp4">
|
|
|
|
|
|
|
|
Sorry, your browser doesn't support embedded videos.
|
|
|
|
</video>
|
|
|
|
<div id="meta">
|
|
|
|
@include('includes.recent-meta')
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
@else
|
|
|
|
<a href="/dashboard/page/edit/{{ $page['uuid'] }}" id="{{ $page['uuid'] }}" class="page-link">
|
2024-04-05 20:42:26 +02:00
|
|
|
<div class="page-bg" style="background: url({{ $file }}) no-repeat center center / cover #cf436b">
|
2024-03-05 03:06:36 +01:00
|
|
|
<div id="meta">
|
|
|
|
@include('includes.recent-meta')
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@if($result['numOfPages'])
|
2024-03-25 20:20:14 +01:00
|
|
|
<div class="paginate">
|
2024-03-05 03:06:36 +01:00
|
|
|
<a class="page-btns" href="/dashboard/pages/{{ $result['paginate']['sort'] }}/{{ $result['paginate']['prevPage'] }}">
|
2024-03-25 19:59:24 +01:00
|
|
|
<svg id="nav-menu-icon" class="icon">
|
2024-03-21 22:29:32 +01:00
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-arrow-with-circle-left"/>
|
|
|
|
</svg>
|
2024-03-05 03:06:36 +01:00
|
|
|
</a>
|
|
|
|
<span class="count">
|
|
|
|
{{ $currentPage }}
|
|
|
|
of
|
|
|
|
{{ $result['numOfPages'] }}
|
|
|
|
</span>
|
|
|
|
<a class="page-btns" href="/dashboard/pages/{{ $result['paginate']['sort'] }}/{{ $result['paginate']['nextPage'] }}">
|
2024-03-25 19:59:24 +01:00
|
|
|
<svg id="nav-menu-icon" class="icon">
|
2024-03-21 22:29:32 +01:00
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-arrow-with-circle-right"/>
|
|
|
|
</svg>
|
2024-03-05 03:06:36 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</section>
|
|
|
|
@endsection
|