@extends('channels.layouts.master') @section('content') @php $setting = setting(); @endphp

{{-- 🔍 SEARCH BOX — Pure HTML Form --}}
{{-- date āĻĨāĻžāĻ•āϞ⧇ hidden field āĻ āϰāĻžāĻ–ā§‹ --}} @if(request('date')) @endif
{{-- Submit Button --}} {{-- Clear Button --}} @if(request('q') || request('date')) @endif
{{-- Active Date Filter Badge --}} @if(request('date'))
{{ \Carbon\Carbon::parse(request('date'))->format('d M, Y') }} āϤāĻžāϰāĻŋāϖ⧇āϰ āϏāĻ‚āĻŦāĻžāĻĻ
@endif
@if ($page->hasTopContent())
{!! $page->renderTopContent() !!}
@endif
{{-- MAIN CONTENT --}}
{{-- LEFT - NEWS LIST --}}
{{-- Result Info --}} @if(request('date') || request('q'))
āĻŽā§‹āϟ {{ $news->total() }} āϟāĻŋ āϏāĻ‚āĻŦāĻžāĻĻ āĻĒāĻžāĻ“āϝāĻŧāĻž āϗ⧇āϛ⧇ @if(request('q')) — "{{ request('q') }}" āĻāϰ āϜāĻ¨ā§āϝ @endif āĻĒ⧃āĻˇā§āĻ āĻž {{ $news->currentPage() }} / {{ $news->lastPage() }}
@endif
@forelse ($news as $info)
@include('global.image', [ 'picture' => $info->path_link ?? null, 'w' => '270px', ])

{{ $info->title }}

{{ date_time_format($info->created_at) }}

@empty

āϕ⧋āύ⧋ āĻ–āĻŦāϰ āĻĒāĻžāĻ“āϝāĻŧāĻž āϝāĻžāϝāĻŧāύāĻŋ

@if(request('date')) {{ \Carbon\Carbon::parse(request('date'))->format('d M, Y') }} āϤāĻžāϰāĻŋāϖ⧇ āϕ⧋āύ⧋ āϏāĻ‚āĻŦāĻžāĻĻ āύ⧇āχ @else āĻ…āĻ¨ā§āϝ āϕ⧋āύ āĻļāĻŦā§āĻĻ āĻĻāĻŋāϝāĻŧ⧇ āĻšā§‡āĻˇā§āϟāĻž āĻ•āϰ⧁āύ @endif
@endforelse
{{-- PAGINATION --}} @if($news->lastPage() > 1)
{{ $news->firstItem() }}–{{ $news->lastItem() }} / āĻŽā§‹āϟ {{ $news->total() }}āϟāĻŋ āϏāĻ‚āĻŦāĻžāĻĻ
    {{-- Previous --}} @if($news->onFirstPage())
  • @else
  • @endif @php $current = $news->currentPage(); $last = $news->lastPage(); $start = max(1, $current - 2); $end = min($last, $current + 2); @endphp @if($start > 1)
  • ā§§
  • @if($start > 2)
  • ...
  • @endif @endif @for($i = $start; $i <= $end; $i++)
  • {{ $i }}
  • @endfor @if($end < $last) @if($end < $last - 1)
  • ...
  • @endif
  • {{ $last }}
  • @endif {{-- Next --}} @if($news->hasMorePages())
  • @else
  • @endif
@endif {{-- END PAGINATION --}}
{{-- RIGHT - SIDEBAR --}}
@if ($page->hasBottomContent())
{!! $page->renderBottomContent() !!}
@endif
@endsection