news page added

This commit is contained in:
Thekindbull 2025-03-06 16:50:00 +08:00
parent 898ea8684c
commit 1a3136e9f0
4 changed files with 125 additions and 3 deletions

View File

@ -12,21 +12,31 @@ class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4 active" ar
</a>
</li>
<li class="nav-item text-center m-2">
<a href="/projects"
class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4 active" aria-current="page">
<a href="/projects" class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4 active"
aria-current="page">
<i class="bi bi-book"></i> <span class="d-none d-lg-inline">Проекты</span>
</a>
</li>
<li class="nav-item text-center m-2">
<a href="/news" class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4 active"
aria-current="page">
<i class="bi bi-layers"></i> <span class="d-none d-lg-inline">Новости</span>
</a>
</li>
<li class="nav-item text-center m-2">
<a href="{{ route('company.agents.table') }}"
class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4 active" aria-current="page">
<i class="bi bi-people"></i> <span class="d-none d-lg-inline">Агенты</span>
</a>
</li>
<li class="nav-item text-center m-2">
<a href="{{ route('company.details') }}"
class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4 active" aria-current="page">
<i class="bi bi-gear"></i> <span class="d-none d-lg-inline">Настройки</span>
</a>
</li>
</ul>

View File

@ -0,0 +1,107 @@
@extends('layouts.app')
@section('content')
<style>
.btn-check:checked+.btn {
background-color: rgb(231, 117, 11);
color: white;
}
td,
h4 {
color: #333c4e !important
}
</style>
<div class="container">
<div>
<div class="d-flex mb-3">
<div class="p-2 border rounded-3 border-1 p-1 bg-white">
<input type="radio" class="btn-check" name="options-base" id="option5" autocomplete="off" checked>
<label class="btn p-2 fs-5" for="option5">Все</label>
<input type="radio" class="btn-check" name="options-base" id="option6" autocomplete="off">
<label class="btn p-2 fs-5" for="option6">Проекты</label>
<input type="radio" class="btn-check" name="options-base" id="option7" autocomplete="off">
<label class="btn p-2 fs-5" for="option7">Скидки</label>
<input type="radio" class="btn-check" name="options-base" id="option7" autocomplete="off">
<label class="btn p-2 fs-5" for="option7">Ипотека</label>
</div>
<div class="ms-auto p-2 hstack gap-2">
<select class="form-select form-select-lg bg-white" aria-label="Large select example">
<option selected>Город: любой</option>
<option value="1">Иркутск</option>
<option value="2">Владивосток</option>
<option value="3">Красноярск</option>
</select>
<select class="form-select form-select-lg bg-white" aria-label="Large select example">
<option selected>Проект: все проекты</option>
<option value="1">Проект 1</option>
<option value="2">Проект 2</option>
<option value="3">Проект 3</option>
</select>
</div>
</div>
</div>
<div>
@for ($i = 0; $i <= 3; $i++)
<div class="d-flex">
<div class="card flex-fill me-2 border-0 p-2 m-2 bg-white" style="">
<div class="card-img-top ratio ratio-16x9">
<img src="https://img3.sibdom.ru/images/photo_crop_282_212/houses/photo_main/97/97be/97be2371dd0bba9c4605c3ea6f06e213.jpg"
class="rounded" alt="...">
<div class="position-absolute bottom-0 start-0 m-3">
<span
class="badge bg-light text-dark border-secondary bg-opacity-75 fs-6 rounded-pill">Новость</span>
</div>
</div>
<div class="card-body">
<h5 class="d-flex card-title fw-bold">
<span class="">Рассрочка на 3 года</span>
</h5>
<p class="card-text">Быстро подберите вариант для клиента из нашего каталога</p>
<p class="card-text text-secondary">10 августа 2024 г.</p>
</div>
</div>
<div class="card flex-fill me-2 border-0 p-2 m-2 bg-white" style="">
<div class="card-img-top ratio ratio-16x9">
<img src="https://img3.sibdom.ru/images/photo_crop_282_212/houses/photo_main/97/97be/97be2371dd0bba9c4605c3ea6f06e213.jpg"
class="rounded" alt="...">
<div class="position-absolute bottom-0 start-0 m-3">
<span
class="badge bg-light text-dark border-secondary bg-opacity-75 fs-6 rounded-pill">Новость</span>
</div>
</div>
<div class="card-body">
<h5 class="d-flex card-title fw-bold">
<span class="">Рассрочка на 3 года</span>
</h5>
<p class="card-text">Быстро подберите вариант для клиента из нашего каталога</p>
<p class="card-text text-secondary">10 августа 2024 г.</p>
</div>
</div>
<div class="card flex-fill me-2 border-0 p-2 m-2 bg-white" style="">
<div class="card-img-top ratio ratio-16x9">
<img src="https://img3.sibdom.ru/images/photo_crop_282_212/houses/photo_main/97/97be/97be2371dd0bba9c4605c3ea6f06e213.jpg"
class="rounded" alt="...">
<div class="position-absolute bottom-0 start-0 m-3">
<span
class="badge bg-light text-dark border-secondary bg-opacity-75 fs-6 rounded-pill">Новость</span>
</div>
</div>
<div class="card-body">
<h5 class="d-flex card-title fw-bold">
<span class="">Рассрочка на 3 года</span>
</h5>
<p class="card-text">Быстро подберите вариант для клиента из нашего каталога</p>
<p class="card-text text-secondary">10 августа 2024 г.</p>
</div>
</div>
</div>
@endfor
</div>
</div>
@endsection

View File

@ -49,7 +49,12 @@
//МАКЕТЫ
Route::get('projects', function ()
{
return view(view: 'projects.index');
return view(view: 'makets.projects');
});
Route::get('news', function ()
{
return view(view: 'makets.news');
});
Route::get('profile', function ()