Add (v1)
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
<th>
|
||||
Image
|
||||
</th>
|
||||
<th>Status</th>
|
||||
<th>Title</th>
|
||||
<th>{{ __('Created at') }}</th>
|
||||
<th>{{ __('Updated in') }}</th>
|
||||
<th>Datetime</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -42,12 +42,33 @@
|
||||
<td><img width="80" height="60" src="{{ $post->featured_image }}"
|
||||
class="img-fluid rounded-2" alt=""></td>
|
||||
<td>
|
||||
@if($post->status === 'publish')
|
||||
<span class="badge bg-success">{{ ucfirst($post->status) }}</span>
|
||||
@elseif($post->status === 'future')
|
||||
<span class="badge bg-primary">{{ ucfirst($post->status) }}</span>
|
||||
@elseif($post->status === 'draft')
|
||||
<span class="badge bg-secondary">{{ ucfirst($post->status) }}</span>
|
||||
@elseif($post->status === 'private')
|
||||
<span class="badge bg-info">{{ ucfirst($post->status) }}</span>
|
||||
@elseif ($post->status == 'trash')
|
||||
<span class="badge bg-danger">{{ ucfirst($post->status) }}</span>
|
||||
@else
|
||||
<span class="badge bg-secondary">{{ ucfirst($post->status) }}</span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(!is_empty($post->post_category?->category?->country_locale_slug) && $post->status == 'publish')
|
||||
<a
|
||||
href="{{ route('home.country.post', ['country' => $post->post_category->category->country_locale_slug, 'post_slug' => $post->slug]) }}">{{ $post->title }}</a>
|
||||
href="{{ route('home.country.post', ['country' => $post->post_category?->category?->country_locale_slug, 'post_slug' => $post->slug]) }}">{{ $post->title }}</a>
|
||||
@else
|
||||
{{ $post->title }}
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>{{ $post->created_at }}</td>
|
||||
<td>{{ $post->updated_at->diffForhumans() }}</td>
|
||||
<td>
|
||||
Created at {{ $post->created_at->timezone(session()->get('timezone'))->isoFormat('Do MMMM YYYY, h:mm A') }}<br>
|
||||
Updated {{ $post->updated_at->diffForhumans() }}
|
||||
</td>
|
||||
<td>
|
||||
<div><a href="{{ route('posts.manage.edit', ['post_id' => $post->id]) }}"
|
||||
class="btn">Edit</a></div>
|
||||
|
||||
@@ -6,19 +6,22 @@
|
||||
<div class="page-header d-print-none">
|
||||
<h2 class="page-title text-center justify-content-center">
|
||||
<div class="align-self-center">
|
||||
@if (!is_null($post))
|
||||
Edit Post
|
||||
@else
|
||||
New Post
|
||||
@endif
|
||||
|
||||
@if (!is_null($post))
|
||||
Edit Post
|
||||
@else
|
||||
New Post
|
||||
@endif
|
||||
</div>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="container-xl">
|
||||
<post-editor></post-editor>
|
||||
@if (!is_null($post))
|
||||
<post-editor :post-id="{{ $post->id }}"></post-editor>
|
||||
@else
|
||||
<post-editor></post-editor>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
<h2 class="h5">{{ $post->excerpt }}</h2>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<img src="{{ $post->featured_image }}" alt="" class="img-fluid rounded-3">
|
||||
<img src="{{ $post->featured_image }}" alt="Photo of {{ $post->name }}" class="img-fluid rounded-3">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
{{ $post->html_body }}
|
||||
{!! $post->html_body !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -5,8 +5,11 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
{!! SEOMeta::generate() !!}
|
||||
{!! OpenGraph::generate() !!}
|
||||
{!! Twitter::generate() !!}
|
||||
{!! JsonLdMulti::generate() !!}
|
||||
<meta property="fb:app_id" content="{{ config('seotools.fb_app_id') }}" />
|
||||
|
||||
@vite('resources/sass/front-app.scss')
|
||||
|
||||
|
||||
@@ -1,35 +1,34 @@
|
||||
<div class="container-fluid border-top">
|
||||
<footer class="py-5 container">
|
||||
<div class="row">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-6 col-md-2 mb-3">
|
||||
<ul class="nav flex-column">
|
||||
|
||||
@foreach ($categories as $category)
|
||||
@if ($category->id % 2 == 0)
|
||||
<li class="nav-item mb-2">
|
||||
<a class="nav-link p-0 text-body-secondary"
|
||||
href="{{ route('home.country.category', ['country' => $category->country_locale_slug, 'category' => $category->slug]) }}">{{ $category->name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-6 col-md-2 mb-3">
|
||||
<ul class="nav flex-column">
|
||||
<li class="nav-item mb-2">
|
||||
<a href="#" class="nav-link p-0 text-body-secondary">About Us</a>
|
||||
</li>
|
||||
<li class="nav-item mb-2">
|
||||
<a href="#" class="nav-link p-0 text-body-secondary">Contact Us</a>
|
||||
</li>
|
||||
<li class="nav-item mb-2">
|
||||
<a href="#" class="nav-link p-0 text-body-secondary">Advertise with us</a>
|
||||
</li>
|
||||
@foreach ($categories as $category)
|
||||
@if ($category->id % 2 == 1)
|
||||
<li class="nav-item mb-2">
|
||||
<a class="nav-link p-0 text-body-secondary"
|
||||
href="{{ route('home.country.category', ['country' => $category->country_locale_slug, 'category' => $category->slug]) }}">{{ $category->name }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-5 offset-md-1 mb-3">
|
||||
<div class="col-md-5 mb-3">
|
||||
|
||||
|
||||
@if ($country_locales->count() > 1)
|
||||
@@ -52,15 +51,15 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form>
|
||||
{{-- <form>
|
||||
<h5>Subscribe to our newsletter</h5>
|
||||
<p>Monthly digest of what's new and exciting from us.</p>
|
||||
<div class="d-flex flex-column flex-sm-row w-100 gap-2">
|
||||
<label for="newsletter1" class="visually-hidden">Email address</label>
|
||||
<input id="newsletter1" type="text" class="form-control" placeholder="Email address">
|
||||
<input id="newsletter1" type="disabled" class="form-control disabled" placeholder="Email address">
|
||||
<button class="btn btn-primary" type="button">Subscribe</button>
|
||||
</div>
|
||||
</form>
|
||||
</form> --}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user