|
|
@@ -0,0 +1,20 @@
|
|
|
+<div class="dropdown d-inline-block">
|
|
|
+ <button
|
|
|
+ class="btn p-0 border-0 bg-transparent fw-bold fs-2 lh-1 text-dark text-decoration-none"
|
|
|
+ type="button"
|
|
|
+ data-bs-toggle="dropdown"
|
|
|
+ aria-expanded="false"
|
|
|
+ aria-label="Выбрать год"
|
|
|
+ >
|
|
|
+ {{ year() }}
|
|
|
+ </button>
|
|
|
+ <ul class="dropdown-menu">
|
|
|
+ @for($year = (int)date('Y') + 1; $year >= 2020; $year--)
|
|
|
+ <li>
|
|
|
+ <a class="dropdown-item @if((int)year() === $year) active @endif" href="{{ route('set-year', ['year' => $year]) }}">
|
|
|
+ {{ $year }}
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ @endfor
|
|
|
+ </ul>
|
|
|
+</div>
|