From 8fcd3bb17bb7709ea3a1e6e9492344b2eb9650ab Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Mon, 10 Jul 2023 20:20:46 +0200 Subject: [PATCH] Prettier --- resources/views/admin/_form.blade.php | 1 - resources/views/admin/index.blade.php | 56 ++++++++++----------- resources/views/public/_list-item.blade.php | 4 +- resources/views/public/index.blade.php | 2 +- resources/views/public/show.blade.php | 12 ++--- 5 files changed, 36 insertions(+), 39 deletions(-) diff --git a/resources/views/admin/_form.blade.php b/resources/views/admin/_form.blade.php index 2684ae5..78eff54 100644 --- a/resources/views/admin/_form.blade.php +++ b/resources/views/admin/_form.blade.php @@ -7,7 +7,6 @@ @include('core::admin._button-back', ['url' => $model->indexUrl(), 'title' => __('News')]) @include('core::admin._title', ['default' => __('New news')]) @component('core::admin._buttons-form', ['model' => $model]) - @endcomponent diff --git a/resources/views/admin/index.blade.php b/resources/views/admin/index.blade.php index a626158..9dbc818 100644 --- a/resources/views/admin/index.blade.php +++ b/resources/views/admin/index.blade.php @@ -3,35 +3,33 @@ @section('title', __('News')) @section('content') + + - - - - - - - + + + @endsection diff --git a/resources/views/public/_list-item.blade.php b/resources/views/public/_list-item.blade.php index 82cce9a..3784628 100644 --- a/resources/views/public/_list-item.blade.php +++ b/resources/views/public/_list-item.blade.php @@ -1,13 +1,13 @@
  • - @empty(! $news->image) + @empty(!$news->image) {{ $news->image->alt_attribute }} @endempty

    {{ $news->title }}

    {{ $news->present()->dateLocalized }}
    - @empty(! $news->summary) + @empty(!$news->summary)
    {{ $news->summary }}
    @endempty
    diff --git a/resources/views/public/index.blade.php b/resources/views/public/index.blade.php index 4141eaa..c330b81 100644 --- a/resources/views/public/index.blade.php +++ b/resources/views/public/index.blade.php @@ -1,6 +1,6 @@ @extends('pages::public.master') -@section('bodyClass', 'body-news body-news-index body-page body-page-'.$page->id) +@section('bodyClass', 'body-news body-news-index body-page body-page-' . $page->id) @section('page')
    diff --git a/resources/views/public/show.blade.php b/resources/views/public/show.blade.php index eed81da..487cceb 100644 --- a/resources/views/public/show.blade.php +++ b/resources/views/public/show.blade.php @@ -1,10 +1,10 @@ @extends('core::public.master') -@section('title', $model->title.' – '.__('News').' – '.$websiteTitle) +@section('title', $model->title . ' – ' . __('News') . ' – ' . $websiteTitle) @section('ogTitle', $model->title) @section('description', $model->summary) @section('ogImage', $model->present()->image(1200, 630)) -@section('bodyClass', 'body-news body-news-'.$model->id.' body-page body-page-'.$page->id) +@section('bodyClass', 'body-news body-news-' . $model->id . ' body-page body-page-' . $page->id) @section('content')
    @@ -19,21 +19,21 @@
    @include('news::public._json-ld', ['news' => $model]) - @empty(! $model->summary) + @empty(!$model->summary)

    {!! nl2br($model->summary) !!}

    @endempty @include('core::public._share-links') - @empty(! $model->image) + @empty(!$model->image)
    - @empty(! $model->image->description) + @empty(!$model->image->description)
    {{ $model->image->description }}
    @endempty
    @endempty - @empty(! $model->body) + @empty(!$model->body)
    {!! $model->present()->body !!}
    @endempty