@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 = ""; @endif @endphp @section('main-content')
@if($page['feature'] == null)
@else
@if(count($media)>1) {% for item in media %} {% set fileName = item.file|split('/') %} {% if item.type == "mp4" %}
{% else %}
{% endif %} {% endfor %} @else {% if media[0] != '' %} {% set fileName = media[0].file|split('/') %} {% if media[0].type == "mp4" %}
{% else %}
{% endif %} {% else %} {% endif %} @endif
{% if files|length > 1 %} {% for item in files %} {% set fileName = item.file|split('/') %} {% if item.type == "mp3" %}
{% else %} {% endif %} {% endfor %} {% else %} {% if files[0] != '' %} {% set fileName = files[0].file|split('/') %} {% if files[0].type == "mp3" %}
{% else %} {% endif %} {% else %} {% endif %} {% endif %}
@endif
TITLE
TAGS
LAYOUTS
OPTIONS {% apply spaceless %} {{ include("dash/partials/options.twig") }} {% endapply %}
UPDATED {{ updated }}
CREATED {{ date }}
{% apply spaceless %} {{ include("dash/partials/editor.twig") }} {% endapply %}
                
            
@endsection