url fix for page browser ui

the ui that is for browsing available pages was using the old url from
the previous routing set up and needed to be updated
This commit is contained in:
RXP 2025-05-16 17:55:11 -06:00
parent 743d7c4d90
commit 59ab2e1536
Signed by: ro
GPG key ID: 976711B5057688B7

View file

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