22 lines
714 B
PHP
22 lines
714 B
PHP
|
|
@extends('layouts.admin')
|
||
|
|
|
||
|
|
@section('content')
|
||
|
|
<div id="app"
|
||
|
|
data-component="PageIndex"
|
||
|
|
data-admin-path="{{ env('ADMIN_PATH', 'loom') }}"
|
||
|
|
data-pages="{{ json_encode($pages->map(function($p) {
|
||
|
|
return [
|
||
|
|
'id' => $p->id,
|
||
|
|
'title' => $p->title,
|
||
|
|
'slug' => $p->slug,
|
||
|
|
'author' => $p->author?->name,
|
||
|
|
'is_published' => $p->is_published,
|
||
|
|
'updated_at' => $p->updated_at->diffForHumans()
|
||
|
|
];
|
||
|
|
})->toArray()) }}">
|
||
|
|
<div class="ui active inverted dimmer">
|
||
|
|
<div class="ui text loader">Loading Pages...</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@endsection
|