@extends('admin.layouts.app') @section('title', '공지사항') @section('page_title', '공지사항') @section('page_desc', '공지사항(상단공지/숨김/첨부파일)을 관리합니다.') @section('content_class', 'a-content--full') @push('head') @endpush @section('content') @php // 컨트롤러에서 templates 로 내려오든, page 로 내려오든 호환 $page = $page ?? ($templates ?? null); $filters = $filters ?? []; $field = (string)($filters['field'] ?? 'subject'); $q = (string)($filters['q'] ?? ''); @endphp
공지사항
공지사항(상단공지/숨김/첨부파일)을 관리합니다.
+ 공지 등록
초기화
{{ $page?->total() ?? 0 }}
@php $total = $page?->total() ?? 0; $perPage = $page?->perPage() ?? 15; $curPage = $page?->currentPage() ?? 1; $no = $total - (($curPage - 1) * $perPage); @endphp @forelse($page as $it) @php $isHidden = (($it->hiding ?? 'N') === 'Y'); // Y=숨김 $isPinned = ((int)($it->first_sign ?? 0) > 0); // >0=공지 @endphp @php $no--; @endphp @empty @endforelse
NO 제목 상태 공지 등록일시 hit 관리
{{ $no }}
@if($isPinned) ● 공지 @endif @if($isHidden) ● 숨김 @endif {{ $it->subject ?? '-' }}
@if($isHidden) ● 숨김 @else ● 노출 @endif @if($isPinned) On @else Off @endif {{ $it->regdate ?? '-' }} {{ $it->hit ?? 0 }} 보기
데이터가 없습니다.
{{ $templates->onEachSide(1)->links('vendor.pagination.admin') }}
@endsection