Add (post manage)
Add (post country viewing)
This commit is contained in:
BIN
resources/.DS_Store
vendored
BIN
resources/.DS_Store
vendored
Binary file not shown.
BIN
resources/views/.DS_Store
vendored
BIN
resources/views/.DS_Store
vendored
Binary file not shown.
21
resources/views/admin/posts.blade.php
Normal file
21
resources/views/admin/posts.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('layouts.admin.app')
|
||||
|
||||
@section('custom_styles')
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="page-body">
|
||||
<div class="container-xl">
|
||||
|
||||
<div class="alert alert-success">
|
||||
<div class="alert-title">
|
||||
{{ __('Welcome') }} {{ auth()->user()->name ?? null }}
|
||||
</div>
|
||||
<div class="text-muted">
|
||||
{{ __('You are logged in!') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
68
resources/views/admin/posts/manage.blade.php
Normal file
68
resources/views/admin/posts/manage.blade.php
Normal file
@@ -0,0 +1,68 @@
|
||||
@extends('layouts.admin.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-xl">
|
||||
<!-- Page title -->
|
||||
<div class="page-header d-print-none">
|
||||
<h2 class="page-title">
|
||||
{{ __('Posts') }}
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="container-xl">
|
||||
|
||||
<div class="alert alert-info">
|
||||
<div class="alert-title">Manage your blog posts here.</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mb-3">
|
||||
<div><a href="{{ route('posts.manage.new') }}" class="btn">New Post</a></div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="table-responsive">
|
||||
<table class="table" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('Post #') }}</th>
|
||||
<th>
|
||||
Image
|
||||
</th>
|
||||
<th>Title</th>
|
||||
<th>{{ __('Created at') }}</th>
|
||||
<th>{{ __('Updated in') }}</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($posts as $post)
|
||||
<tr>
|
||||
<td>{{ $post->id }}</td>
|
||||
<td><img width="80" height="60" src="{{ $post->featured_image }}"
|
||||
class="img-fluid rounded-2" alt=""></td>
|
||||
<td>
|
||||
<a
|
||||
href="{{ route('home.country.post', ['country' => $post->post_category->category->country_locale_slug, 'post_slug' => $post->slug]) }}">{{ $post->title }}</a>
|
||||
|
||||
</td>
|
||||
<td>{{ $post->created_at }}</td>
|
||||
<td>{{ $post->updated_at->diffForhumans() }}</td>
|
||||
<td>
|
||||
<div><a href="{{ route('posts.manage.edit', ['post_id' => $post->id]) }}"
|
||||
class="btn">Edit</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@if ($posts->hasPages())
|
||||
<div class="card-footer pb-0">
|
||||
{{ $posts->links() }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -5,7 +5,9 @@
|
||||
<div class="row justify-content-center text-center">
|
||||
<div class="col-12 col-lg-8 py-5">
|
||||
<h2 class="h3 fw-bold">ProductAlert is the place to be for top rated product reviews with recommendation such
|
||||
as the right price, latest trend, from the best brands from {{ ($country_locale->country_iso == '*') ? 'the whole world' :get_country_name_by_iso($country_locale->country_iso) }}.</h2>
|
||||
as the right price, latest trend, from the best brands from
|
||||
{{ $country_locale->country_iso == '*' ? 'the whole world' : get_country_name_by_iso($country_locale->country_iso) }}.
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -13,23 +15,47 @@
|
||||
<div class="container">
|
||||
<h3 class="h4 fw-bold text-center mb-3">Featured Articles</h3>
|
||||
<div class="row g-3 justify-content-center">
|
||||
@foreach($featured_posts as $post)
|
||||
@foreach ($featured_posts as $post)
|
||||
<div class="col-12 col-xl-3">
|
||||
<a href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post' => $post->slug]) }}" class="text-decoration-none">
|
||||
<div class="card shadow-sm" style="height:100%;">
|
||||
|
||||
<div class="card shadow-sm" style="height:100%;">
|
||||
<a href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post_slug' => $post->slug]) }}"
|
||||
class="text-decoration-none">
|
||||
<div class="card-img-top ratio ratio-16x9">
|
||||
<img src="{{ $post->featured_image }}" alt="">
|
||||
<img src="{{ $post->featured_image }}" alt="Photo of {{ $post->title }}">
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<p class="card-text fw-bold">{{ $post->title }}</p>
|
||||
</a>
|
||||
|
||||
<div class="card-body d-flex justify-content-between flex-column">
|
||||
|
||||
<div class="mb-2">
|
||||
|
||||
<p class="card-text fw-bold">
|
||||
<a href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post_slug' => $post->slug]) }}"
|
||||
class="text-decoration-none">{{ $post->title }}</a>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p class="card-text mb-0">
|
||||
<small>in </small>
|
||||
@foreach ($post->post_categories as $post_category)
|
||||
<small><a class="text-decoration-none"
|
||||
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
||||
</small>
|
||||
@if (!$loop->last)
|
||||
,
|
||||
@endif
|
||||
@endforeach
|
||||
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||
</p>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<small class="text-body-secondary">{{ $post->created_at->format('j F Y') }}</small>
|
||||
{{-- <small class="text-body-secondary">9 min read</small> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@@ -40,35 +66,59 @@
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col col-md-12 col-lg-12 col-xl-11 col-xxl-9">
|
||||
<h3 class="h4 fw-bold text-center mb-3">What's New in {{ get_country_name_by_iso($country_locale->country_iso) }}</h3>
|
||||
<h3 class="h4 fw-bold text-center mb-3">What's New in
|
||||
{{ get_country_name_by_iso($country_locale->country_iso) }}</h3>
|
||||
<div class="row g-3">
|
||||
@foreach ($latest_posts as $post)
|
||||
<div class="col-lg-6">
|
||||
<a href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post' => str_random() ]) }}" class="text-decoration-none">
|
||||
<div class="card" style="height:100%;">
|
||||
<div class="row g-0">
|
||||
<div class="col-md-5">
|
||||
|
||||
<div class="card" style="height:100%;">
|
||||
<div class="row g-0">
|
||||
<div class="col-md-5">
|
||||
<a href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post_slug' => str_random()]) }}"
|
||||
class="text-decoration-none">
|
||||
<div class="img-fluid rounded-start ratio ratio-16x9">
|
||||
<img src="{{ $post->featured_image }}" alt="">
|
||||
<img src="{{ $post->featured_image }}"
|
||||
alt="Photo of {{ $post->title }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<div class="card-body">
|
||||
<p class="card-title fw-bold">H{{ $post->title }}</p>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<small class="text-body-secondary">{{ $post->created_at->format('j F Y') }}</small>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<div class="card-body d-flex justify-content-between flex-column"
|
||||
style="height:100%;">
|
||||
<div>
|
||||
<a href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post_slug' => str_random()]) }}"
|
||||
class="text-decoration-none">
|
||||
<p class="card-title fw-bold">{{ $post->title }}</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<p class="card-text mb-0">
|
||||
<small>in </small>
|
||||
@foreach ($post->post_categories as $post_category)
|
||||
<small><a class="text-decoration-none"
|
||||
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
||||
</small>
|
||||
@if (!$loop->last)
|
||||
,
|
||||
@endif
|
||||
@endforeach
|
||||
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||
</p>
|
||||
<small
|
||||
class="text-body-secondary">{{ $post->created_at->format('j F Y') }}</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
<div class="text-center py-3">
|
||||
<a href="{{ route('home.country.posts', ['country' => $country_locale->country_iso ]) }}" class="btn btn-primary">All News & Updates</a>
|
||||
<a href="{{ route('home.country.posts', ['country' => $country_locale->country_iso]) }}"
|
||||
class="btn btn-primary">All News & Updates</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,66 +5,62 @@
|
||||
|
||||
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-lg-11 col-xl-9 col-xxl-8">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-lg-11 col-xl-9 col-xxl-8">
|
||||
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 col-lg-8 col-xl-8">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 col-lg-8 col-xl-8">
|
||||
|
||||
<div class="mb-5">
|
||||
<h1 class="h2 fw-bold">All {{ $country_locale->name }} News</h1>
|
||||
<p class="text-secondary">
|
||||
The latest {{ $country_locale->name }} news, brought to you by {{ config('app.name') }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="mb-5">
|
||||
<h1 class="h2 fw-bold">All {{ $country_locale->name }} News</h1>
|
||||
<p class="text-secondary">
|
||||
The latest {{ $country_locale->name }} news, brought to you by {{ config('app.name') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@for($i = 0; $i < 10; $i++)
|
||||
<div class="my-3">
|
||||
@foreach ($latest_posts as $post)
|
||||
<div class="my-3">
|
||||
|
||||
|
||||
<div class="card mb-3">
|
||||
|
||||
|
||||
<div class="card mb-3">
|
||||
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a class="text-decoration-none" href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post' => str_random() ]) }}">Here is why a kitten catches mice faster than an adult cat.</a></h5>
|
||||
<p class="card-text">
|
||||
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
|
||||
</p>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a class="text-decoration-none fw-bold"
|
||||
href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post_slug' => $post->slug]) }}">{{ $post->title }}</a>
|
||||
</h5>
|
||||
|
||||
<p class="card-text">
|
||||
<small><a class="text-decoration-none" href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => 'technology' ]) }}">#technology</a> <a class="text-decoration-none" href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => 'gadgets' ]) }}">#gadgets</a></small>
|
||||
<small class="text-body-secondary ms-2">3 min read</small>
|
||||
</p>
|
||||
<p class="card-text">
|
||||
in
|
||||
@foreach ($post->post_categories as $post_category)
|
||||
<small><a class="text-decoration-none"
|
||||
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
||||
</small>
|
||||
@endforeach
|
||||
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<a class="card-img-top"
|
||||
href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post_slug' => $post->slug]) }}">
|
||||
<img src="{{ $post->featured_image }}"
|
||||
class="card-img-top rounded-bottom-2 rounded-top-0"
|
||||
alt="Photo of {{ $post->title }}">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
{{ $latest_posts->links() }}
|
||||
|
||||
</div>
|
||||
<a class="card-img-top" href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post' => str_random() ]) }}">
|
||||
<img src="https://placekitten.com/400/300" class="card-img-top rounded-bottom-2 rounded-top-0" alt="...">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@endfor
|
||||
|
||||
<nav aria-label="Page navigation example">
|
||||
<ul class="pagination">
|
||||
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">1</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">2</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">3</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">Next</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
@endsection
|
||||
|
||||
@@ -4,68 +4,65 @@
|
||||
<div class="container py-3">
|
||||
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-lg-11 col-xl-9 col-xxl-8">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-lg-11 col-xl-9 col-xxl-8">
|
||||
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 col-lg-8 col-xl-8">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 col-lg-8 col-xl-8">
|
||||
|
||||
<div class="mb-5">
|
||||
<h1 class="h2 fw-bold">{{ $category->name }}</h1>
|
||||
<p class="text-secondary">
|
||||
{{ $category->description }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="mb-5">
|
||||
<h1 class="h2 fw-bold">{{ $category->name }}</h1>
|
||||
<p class="text-secondary">
|
||||
{{ $category->description }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@for($i = 0; $i < 10; $i++)
|
||||
<div class="my-3">
|
||||
@foreach ($latest_posts as $post)
|
||||
<div class="my-3">
|
||||
|
||||
|
||||
<div class="card mb-3">
|
||||
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a class="text-decoration-none" href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post' => str_random() ]) }}">Here is why a kitten catches mice faster than an adult cat.</a></h5>
|
||||
<p class="card-text">
|
||||
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
|
||||
</p>
|
||||
|
||||
<p class="card-text">
|
||||
<small><a class="text-decoration-none" href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => 'technology' ]) }}">#technology</a> <a class="text-decoration-none" href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => 'gadgets' ]) }}">#gadgets</a></small>
|
||||
<small class="text-body-secondary ms-2">3 min read</small>
|
||||
</p>
|
||||
<div class="card mb-3">
|
||||
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a class="text-decoration-none fw-bold"
|
||||
href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post_slug' => $post->slug]) }}">{{ $post->title }}</a>
|
||||
</h5>
|
||||
|
||||
<p class="card-text">
|
||||
in
|
||||
@foreach ($post->post_categories as $post_category)
|
||||
<small><a class="text-decoration-none"
|
||||
href="{{ route('home.country.category', ['country' => $country_locale->country_iso, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
||||
</small>
|
||||
@endforeach
|
||||
{{-- <small class="text-body-secondary ms-2">3 min read</small> --}}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<a class="card-img-top"
|
||||
href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post_slug' => $post->slug]) }}">
|
||||
<img src="{{ $post->featured_image }}"
|
||||
class="card-img-top rounded-bottom-2 rounded-top-0"
|
||||
alt="Photo of {{ $post->title }}">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
{{ $latest_posts->links() }}
|
||||
</div>
|
||||
<a class="card-img-top" href="{{ route('home.country.post', ['country' => $country_locale->country_iso, 'post' => str_random() ]) }}">
|
||||
<img src="https://placekitten.com/400/300" class="card-img-top rounded-bottom-2 rounded-top-0" alt="...">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@endfor
|
||||
|
||||
<div>
|
||||
<nav class="col" aria-label="Page navigation example">
|
||||
<ul class="pagination">
|
||||
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">1</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">2</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">3</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">Next</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
{{-- <div class="col-md-4 col-lg-4 col-xl-4 bg-secondary">
|
||||
{{-- <div class="col-md-4 col-lg-4 col-xl-4 bg-secondary">
|
||||
b
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
@endsection
|
||||
|
||||
@@ -2,6 +2,43 @@
|
||||
|
||||
@section('content')
|
||||
<div class="container py-3">
|
||||
Post
|
||||
</div>
|
||||
@endsection
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-lg-11 col-xl-9 col-xxl-8">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 col-lg-8 col-xl-8 text-left">
|
||||
<div class="mb-2">
|
||||
<h1 class="h3 fw-bold mb-1">{{ $post->title }}</h1>
|
||||
|
||||
<div>
|
||||
<span>
|
||||
in
|
||||
@foreach ($post->post_categories as $post_category)
|
||||
<small><a class="text-decoration-none"
|
||||
href="{{ route('home.country.category', ['country' => $post_category->category->country_locale_slug, 'category' => $post_category->category->slug]) }}">{{ $post_category->category->name }}</a>
|
||||
</small>
|
||||
@endforeach
|
||||
</span>
|
||||
<span class="ms-2">
|
||||
<small>
|
||||
|
||||
Written by {{ $post->author->name }}
|
||||
</small>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<h2 class="h5">{{ $post->excerpt }}</h2>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<img src="{{ $post->featured_image }}" alt="" class="img-fluid rounded-3">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
{{ $post->html_body }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<meta name="description" content="">
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
@vite('resources/sass/app.scss')
|
||||
@vite('resources/sass/admin-app.scss')
|
||||
</head>
|
||||
|
||||
<body class="border-top-wide border-primary d-flex flex-column">
|
||||
@@ -26,7 +26,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@vite('resources/js/app.js')
|
||||
@vite('resources/js/admin-app.js')
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -25,7 +25,7 @@ class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from ht
|
||||
</li>
|
||||
|
||||
|
||||
<li class="nav-item @if (request()->routeIs('dashboard')) active @endif">
|
||||
{{-- <li class="nav-item @if (request()->routeIs('dashboard')) active @endif">
|
||||
<a class="nav-link" href="{{ route('dashboard') }}">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/home -->
|
||||
@@ -43,7 +43,29 @@ class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from ht
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
--}}
|
||||
<li class="nav-item @if (request()->routeIs('posts.manage')) active @endif">
|
||||
<a class="nav-link" href="{{ route('posts.manage') }}">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/home -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-list"
|
||||
width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
|
||||
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M9 6l11 0"></path>
|
||||
<path d="M9 12l11 0"></path>
|
||||
<path d="M9 18l11 0"></path>
|
||||
<path d="M5 6l0 .01"></path>
|
||||
<path d="M5 12l0 .01"></path>
|
||||
<path d="M5 18l0 .01"></path>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="nav-link-title">
|
||||
{{ __('Posts') }}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{--
|
||||
<li class="nav-item @if (request()->routeIs('users.index')) active @endif">
|
||||
<a class="nav-link" href="{{ route('users.index') }}">
|
||||
<span
|
||||
@@ -62,9 +84,9 @@ class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from ht
|
||||
{{ __('Users') }}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</li> --}}
|
||||
|
||||
<li class="nav-item @if (request()->routeIs('about')) active @endif">
|
||||
{{-- <li class="nav-item @if (request()->routeIs('about')) active @endif">
|
||||
<a class="nav-link" href="{{ route('about') }}">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/file-text -->
|
||||
@@ -81,9 +103,9 @@ class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from ht
|
||||
{{ __('About') }}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</li> --}}
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
{{-- <li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#navbar-extra" data-bs-toggle="dropdown"
|
||||
data-bs-auto-close="outside" role="button" aria-expanded="false">
|
||||
<span
|
||||
@@ -132,7 +154,7 @@ class="icon icon-tabler icon-tabler-list-details" width="24" height="24"
|
||||
Submenu Item #3
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</li> --}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
<div class="col-6 col-md-2 mb-3">
|
||||
<ul class="nav flex-column">
|
||||
|
||||
@foreach ($categories as $category)
|
||||
<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
|
||||
@foreach ($categories as $category)
|
||||
<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
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@@ -16,13 +17,13 @@
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<a href="#" class="nav-link p-0 text-body-secondary">Advertise with us</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -31,22 +32,24 @@
|
||||
<div class="col-md-5 offset-md-1 mb-3">
|
||||
|
||||
|
||||
@if($country_locales->count() > 1)
|
||||
<div class="dropdown mb-4">
|
||||
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
{{ $current_country_locale->name }}
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuSwitch">
|
||||
@foreach ($country_locales as $country_locale)
|
||||
@if ($country_locale->id != $current_country_locale->id)
|
||||
<li><a class="dropdown-item" href="{{ route('home.country', [
|
||||
'country' => $country_locale->slug
|
||||
]) }}">{{ $country_locale->name }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@if ($country_locales->count() > 1)
|
||||
<div class="dropdown mb-4">
|
||||
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
{{ $current_country_locale->name }}
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuSwitch">
|
||||
@foreach ($country_locales as $country_locale)
|
||||
@if ($country_locale->id != $current_country_locale->id)
|
||||
<li><a class="dropdown-item"
|
||||
href="{{ route('home.country', [
|
||||
'country' => $country_locale->slug,
|
||||
]) }}">{{ $country_locale->name }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form>
|
||||
@@ -63,7 +66,7 @@
|
||||
|
||||
<div class="d-flex flex-column flex-sm-row justify-content-center py-4 my-4">
|
||||
<p>© {{ date('Y') }} {{ config('app.name') }}. All rights reserved.</p>
|
||||
{{-- <ul class="list-unstyled d-flex">
|
||||
{{-- <ul class="list-unstyled d-flex">
|
||||
<li class="ms-3"><a class="link-body-emphasis" href="#"><svg class="bi" width="24"
|
||||
height="24">
|
||||
<use xlink:href="#twitter"></use>
|
||||
|
||||
@@ -9,55 +9,61 @@
|
||||
aria-labelledby="offcanvasNavbarLabel">
|
||||
<div class="offcanvas-header">
|
||||
<h4 class="offcanvas-title fw-bold mb-0" id="offcanvasNavbarLabel">
|
||||
{{ config('app.name') }} {{ str_contains(request()->route()->getName(), 'home.country') ? get_country_emoji_by_iso($current_country_locale->country_iso) : '' }}
|
||||
{{ config('app.name') }}
|
||||
{{ str_contains(request()->route()->getName(),'home.country')? get_country_emoji_by_iso($current_country_locale->country_iso): '' }}
|
||||
</h4>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="offcanvas-body p-0">
|
||||
|
||||
@if($country_locales->count() > 1)
|
||||
<div class="p-3">
|
||||
<div class="dropdown d-grid">
|
||||
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
{{ $current_country_locale->name }}
|
||||
</button>
|
||||
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuSwitch">
|
||||
@foreach ($country_locales as $country_locale)
|
||||
@if ($country_locale->id != $current_country_locale->id)
|
||||
<li><a class="dropdown-item" href="{{ route('home.country', [
|
||||
'country' => $country_locale->slug
|
||||
]) }}">{{ $country_locale->name }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@if ($country_locales->count() > 1)
|
||||
<div class="p-3">
|
||||
<div class="dropdown d-grid">
|
||||
<button class="btn btn-outline-primary dropdown-toggle" type="button"
|
||||
id="dropdownMenuSwitch" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
{{ $current_country_locale->name }}
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuSwitch">
|
||||
@foreach ($country_locales as $country_locale)
|
||||
@if ($country_locale->id != $current_country_locale->id)
|
||||
<li><a class="dropdown-item"
|
||||
href="{{ route('home.country', [
|
||||
'country' => $country_locale->slug,
|
||||
]) }}">{{ $country_locale->name }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<div class="border-bottom"></div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="p-3">
|
||||
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page" href="{{ route('home.country', ['country' => $current_country_locale->slug ]) }}">Home</a>
|
||||
</li>
|
||||
@foreach ($categories as $category)
|
||||
<div class="border-bottom"></div>
|
||||
@endif
|
||||
|
||||
<div class="p-3">
|
||||
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page" href="{{ route('home.country.category', ['country' => $category->country_locale_slug, 'category' => $category->slug ]) }}">{{ $category->name }}</a>
|
||||
<a class="nav-link active" aria-current="page"
|
||||
href="{{ route('home.country', ['country' => $current_country_locale->slug]) }}">Home</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@foreach ($categories as $category)
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page"
|
||||
href="{{ route('home.country.category', ['country' => $category->country_locale_slug, 'category' => $category->slug]) }}">{{ $category->name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a href="/" class="d-inline-flex link-body-emphasis text-decoration-none">
|
||||
<h1 class="h4 mb-0 fw-bold">
|
||||
{{ config('app.name') }} {{ str_contains(request()->route()->getName(), 'home.country') ? get_country_emoji_by_iso($current_country_locale->country_iso) : '' }}
|
||||
{{ config('app.name') }}
|
||||
{{ str_contains(request()->route()->getName(),'home.country')? get_country_emoji_by_iso($current_country_locale->country_iso): '' }}
|
||||
</h1>
|
||||
</a>
|
||||
</div>
|
||||
@@ -65,7 +71,8 @@
|
||||
<ul class="nav col-12 col-md-auto mb-2 justify-content-center mb-md-0">
|
||||
@foreach ($categories as $category)
|
||||
@if ($category->is_top)
|
||||
<li><a href="{{ route('home.country.category', ['country' => $category->country_locale_slug, 'category' => $category->slug ]) }}" class="nav-link px-2 link-secondary">{{ $category->short_name }}</a></li>
|
||||
<li><a href="{{ route('home.country.category', ['country' => $category->country_locale_slug, 'category' => $category->slug]) }}"
|
||||
class="nav-link px-2 link-secondary">{{ $category->short_name }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
3
resources/views/vendor/laravel_editorjs/blocks/code.blade.php
vendored
Normal file
3
resources/views/vendor/laravel_editorjs/blocks/code.blade.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="editor-code">
|
||||
<code class="code__content">{{ htmlspecialchars($data['code']) }}</code>
|
||||
</div>
|
||||
1
resources/views/vendor/laravel_editorjs/blocks/delimiter.blade.php
vendored
Normal file
1
resources/views/vendor/laravel_editorjs/blocks/delimiter.blade.php
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<div class="editor-delimiter" style="text-align: center;">***</div>
|
||||
6
resources/views/vendor/laravel_editorjs/blocks/header.blade.php
vendored
Normal file
6
resources/views/vendor/laravel_editorjs/blocks/header.blade.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
@php
|
||||
$level = $data['level'] ?? 1;
|
||||
$tag = "h{$level}";
|
||||
@endphp
|
||||
|
||||
<{{ $tag }}>{{ $data['text'] ?? '' }}</{{ $tag }}>
|
||||
21
resources/views/vendor/laravel_editorjs/blocks/image.blade.php
vendored
Normal file
21
resources/views/vendor/laravel_editorjs/blocks/image.blade.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
@php
|
||||
$classes = '';
|
||||
if ($data['stretched']) {
|
||||
$classes .= ' image--stretched';
|
||||
}
|
||||
if ($data['withBorder']) {
|
||||
$classes .= ' image--bordered';
|
||||
}
|
||||
if ($data['withBackground']) {
|
||||
$classes .= ' image--backgrounded';
|
||||
}
|
||||
@endphp
|
||||
|
||||
<figure class="image {{ $classes }}">
|
||||
<img src="{{ $data['file']['url'] }}" alt="{{ $data['caption'] ?: '' }}">
|
||||
@if (!empty($data['caption']))
|
||||
<footer class="image-caption">
|
||||
{{ $data['caption'] }}
|
||||
</footer>
|
||||
@endif
|
||||
</figure>
|
||||
18
resources/views/vendor/laravel_editorjs/blocks/link-tool.blade.php
vendored
Normal file
18
resources/views/vendor/laravel_editorjs/blocks/link-tool.blade.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<a class="embed-link" href="{{ $data['link'] }}" target="_blank" rel="nofollow">
|
||||
@php $metaImageUrl = $data['meta']['image']['url'] ?? '' @endphp
|
||||
@if ($metaImageUrl)
|
||||
<img class="embed-link__image" src="{{ $metaImageUrl }}">
|
||||
@endif
|
||||
|
||||
<div class="embed-link__title">
|
||||
{{ $data['meta']['title'] }}
|
||||
</div>
|
||||
|
||||
<div class="embed-link__description">
|
||||
{{ $data['meta']['description'] }}
|
||||
</div>
|
||||
|
||||
<span class="embed-link__domain">
|
||||
{{ parse_url($data['link'], PHP_URL_HOST) }}
|
||||
</span>
|
||||
</a>
|
||||
12
resources/views/vendor/laravel_editorjs/blocks/list.blade.php
vendored
Normal file
12
resources/views/vendor/laravel_editorjs/blocks/list.blade.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
@php
|
||||
$tag = 'ul';
|
||||
if ('ordered' === $data['type']) {
|
||||
$tag = 'ol';
|
||||
}
|
||||
@endphp
|
||||
|
||||
<{{ $tag }}>
|
||||
@foreach ($data['items'] as $item)
|
||||
<li>{{ $item }}</li>
|
||||
@endforeach
|
||||
</{{ $tag }}>
|
||||
1
resources/views/vendor/laravel_editorjs/blocks/not-found.blade.php
vendored
Normal file
1
resources/views/vendor/laravel_editorjs/blocks/not-found.blade.php
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<p style="color: red">{{ "{$type}: " . __('Block Not Found!') }}</p>
|
||||
3
resources/views/vendor/laravel_editorjs/blocks/paragraph.blade.php
vendored
Normal file
3
resources/views/vendor/laravel_editorjs/blocks/paragraph.blade.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<p>
|
||||
{{ $data['text'] }}
|
||||
</p>
|
||||
18
resources/views/vendor/laravel_editorjs/blocks/quote.blade.php
vendored
Normal file
18
resources/views/vendor/laravel_editorjs/blocks/quote.blade.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
@php
|
||||
$class = '';
|
||||
|
||||
if ('center' === $data['alignment']) {
|
||||
$class = 'text-center';
|
||||
} elseif ('left' === $data['alignment']) {
|
||||
$class = 'text-left';
|
||||
} else {
|
||||
$class = 'text-right';
|
||||
}
|
||||
@endphp
|
||||
|
||||
<blockquote class="editor-quote">
|
||||
<p class="{{ $class }}">{{ $data['text'] }}</p>
|
||||
@if (!empty($data['caption']))
|
||||
<small class="{{ $class }}">— {{ $data['caption'] }}</small>
|
||||
@endif
|
||||
</blockquote>
|
||||
5
resources/views/vendor/laravel_editorjs/blocks/raw.blade.php
vendored
Normal file
5
resources/views/vendor/laravel_editorjs/blocks/raw.blade.php
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<div
|
||||
style="min-height: 200px; background-color: #1e2128; font-family: Menlo, Monaco, Consolas, Courier New, monospace;
|
||||
font-size: 14px; line-height: 1.6; letter-spacing: -0.2px; color: #e2e2e2; padding: 10px 12px;">
|
||||
{{ $data['html'] }}
|
||||
</div>
|
||||
11
resources/views/vendor/laravel_editorjs/blocks/table.blade.php
vendored
Normal file
11
resources/views/vendor/laravel_editorjs/blocks/table.blade.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<table class="table">
|
||||
@foreach ($data['content'] as $row)
|
||||
<tr>
|
||||
@php $tag = ($loop->first && $data['withHeadings']) ? 'th' : 'td'; @endphp
|
||||
|
||||
@foreach ($row as $cell)
|
||||
<{{ $tag }}> {{ $cell }} </{{ $tag }}>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
Reference in New Issue
Block a user