@extends('frame') @section('title', 'The Dash | Edit Page') @php if($mode == 'edit') { $id = $page['id']; $uuid = $page['uuid']; $slug = $page['slug']; $feature = $page['feature']; $layout = $page['layout']; $tags = $page['tags']; $content = $page['content']; $date = $page['created']; $updated = $page['updated']; $media = $page['media']; $files = $page['docs']; }else{ $id = ""; $uuid = ""; $slug = ""; $feature = ""; $layout = ""; $tags = ""; $content = ""; $date = ""; $updated = ""; $media = ""; $files = ""; } @endphp @section('main-content')
@if($page['feature'] == null)
@else
@if(count($media)>1) @foreach($media as $item) @if($item['type'] == "mp4")
@else
@endif @endforeach @else @if(media[0] != '') @if(media[0]['type'] == "mp4")
@else
@endif @endif @endif
@if(count($files) > 1) @foreach($files as $item) @php $fileName = explode("/", $item['file']); @endphp @if($item['type'] == "mp3")
@else @endif @endforeach @else @if(isset($files[0]) && $files[0] != '') @php $fileName = explode("/", $item['file']); @endphp @if($files[0]['type'] == "mp3")
@else @endif @else @endif @endif
@endif
TITLE
TAGS
LAYOUTS
OPTIONS @spaceless @include('includes.options') @endspaceless
UPDATED {{ $updated }}
CREATED {{ $date }}
@spaceless @include('includes.editor') @endspaceless
@endsection @section('scripting') @endsection