.
This commit is contained in:
@ -20,6 +20,13 @@ class AboutController extends Controller
|
||||
return view('abouts.create');
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$about = About::findOrFail($id);
|
||||
return view('abouts.show', compact('about'));
|
||||
}
|
||||
|
||||
|
||||
// Store new block to DB
|
||||
public function store(Request $request)
|
||||
{
|
||||
|
@ -4,8 +4,7 @@
|
||||
<div class="container mt-5">
|
||||
<h1>Dashboard</h1>
|
||||
<div class="d-flex gap-3 mt-3">
|
||||
<a href="{{ route('companies.index') }}" class="btn btn-primary">Manage Companies</a>
|
||||
<a href="{{ route('employees.index') }}" class="btn btn-secondary">Manage Employees</a>
|
||||
|
||||
<a href="{{ route('posts.index') }}" class="btn btn-secondary">Manage Posts</a>
|
||||
<a href="{{ route('sliders.index') }}" class="btn btn-secondary">Manage Sliders</a>
|
||||
<a href="{{ route('preparations.index') }}" class="btn btn-secondary">Manage Preparations</a>
|
||||
|
@ -69,7 +69,7 @@
|
||||
<ul class="widget-post ttm-recent-post-list">
|
||||
@foreach($otherBlogs as $other)
|
||||
<li>
|
||||
<img class="img-fluid" src="{{ asset('storage/' . $other->image) }}" width="72" height="80" alt="post-img">
|
||||
<img class="img-fluid" src="{{ asset('storage/' . $other->thumbnail) }}" width="72" height="80" alt="post-img">
|
||||
<div class="post-detail">
|
||||
<a href="{{ route('frontend.blog-details', $other->id) }}">
|
||||
{{ Str::limit($other->title, 40) }}
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div class="row g-0 res-991-plr-15">
|
||||
@foreach($abouts as $about)
|
||||
<div class="col-lg-4 order-lg-3 res-991-mt-15">
|
||||
<div class="featured-icon-box icon-align-top-content ttm-bgcolor-darkgrey ttm-textcolor-white style12">
|
||||
<div class="{{$about->extra_classes}}">
|
||||
<div class="featured-icon">
|
||||
<div class="ttm-icon ttm-icon_element-size-lg ttm-icon_element-onlytxt ttm-icon_element-color-white">
|
||||
<i class="flaticon flaticon-heart-attack"></i>
|
||||
|
@ -33,12 +33,7 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('dashboard') }}">Dashboard</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('companies.index') }}">Companies</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('employees.index') }}">Employees</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('posts.index') }}">Posts</a>
|
||||
</li>
|
||||
@ -57,6 +52,9 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('testimonials.index') }}">Testimonials</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('abouts.index') }}">Abouts</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav ms-auto">
|
||||
|
Reference in New Issue
Block a user