2025-05-16 17:37:53 -06:00
@ extends ( 'frame' )
2024-02-29 13:00:59 -06:00
@ section ( 'title' , 'The Dash | Start' )
2025-05-16 17:37:53 -06:00
@ section ( 'main-content' )
< section class = " index-header " >
< div class = " index-header-left " >
< h1 > Recent </ h1 >
</ div >
< div class = " index-header-right " ></ div >
</ section >
< section class = " index-recent-pages " >
@ if ( $result [ 'entryCount' ] != 0 )
@ foreach ( $result [ 'pages' ] as $page )
@ php
2024-03-07 11:36:31 -06:00
$type = '' ;
$file = '' ;
isset ( $page [ 'media' ][ 0 ][ 'type' ]) ? $type = $page [ 'media' ][ 0 ][ 'type' ] : $type = '' ;
isset ( $page [ 'media' ][ 0 ][ 'file' ]) ? $file = $page [ 'media' ][ 0 ][ 'file' ] : $file = '' ;
2025-05-16 17:37:53 -06:00
@ endphp
@ if ( $type == 'mp4' )
< a href = " /dashboard/page/edit/ { { $page [ 'uuid' ] } } " id = " { { $page [ 'uuid' ] } } " class = " post-video-link recent-link " >
@ include ( 'includes.recent-meta' )
< video class = " post-video " loop muted autoplay >
< source src = " { { $file } } " type = " video/mp4 " >
Sorry , your browser doesn ' t support embedded videos .
</ video >
</ a >
@ else
< a href = " /dashboard/pages/edit/ { { $page [ 'uuid' ] } } " id = " { { $page [ 'uuid' ] } } " class = " post-link recent-link " style = " background: url( { { $file } }) no-repeat center center / cover #cf436b " >
@ include ( 'includes.recent-meta' )
</ a >
@ endif
@ endforeach
@ endif
</ section >
2024-03-07 11:36:31 -06:00
2025-05-16 17:37:53 -06:00
@ endsection