@extends('layouts.admin') @section('title', '뷰티샵 관리') @section('content')

뷰티샵 관리

등록
@if(session('success')) @endif
{{ isset($shops) && method_exists($shops, 'total') ? $shops->total() : 12 }}건의 뷰티샵
@php $pcShops = isset($shops) && method_exists($shops, 'items') ? $shops->items() : []; @endphp @forelse($pcShops as $shop) @php $id = $shop->id; $name = $shop->name; $introduction = $shop->introduction; $address = trim(($shop->address1 ?? '') . ' ' . ($shop->address2 ?? '')); $centerName = $shop->center->name ?? '본사 직접 관리'; $owner = $shop->ceo_name; $status = $shop->operating_status; $pinned = $shop->is_pinned ?? false; // 메인 노출 여부 필드가 DB에 있다면 매칭, 없다면 기본값 처리 (예: is_main 혹은 메인 노출 상태 컬럼) $isMainDisplay = $shop->is_main_displayed ?? true; $thumbPath = $shop->logo_path ?? null; @endphp @empty @endforelse
대표 이미지 뷰티샵 정보 소속 및 대표자 노출 설정 영업 상태 및 관리
{{ $name }} @if($pinned) 상단고정 @endif
@if($introduction)
{{ $introduction }}
@endif @if($address)
{{ $address }}
@endif
{{ $centerName }}
대표: {{ $owner }}
is_pinned ? 'checked' : '' }}>
is_main_displayed ? 'checked' : '' }}>
정렬
@if($status === 'active') 영업중 (active) @elseif($status === 'temp_closed') 일시중지 (temp_closed) @elseif($status === 'suspended') 운영정지 (suspended) @else 폐점 (closed) @endif
등록된 뷰티샵이 없습니다.
@if(isset($shops) && method_exists($shops, 'hasPages') && $shops->hasPages())
{{ $shops->appends(request()->query())->links() }}
@endif
@include('admin.shops.partials.list_items', ['shops' => $shops ?? null])
로딩 중...
추가 데이터를 불러오는 중입니다...
@endsection @push('scripts') @php $currentPageNum = 1; $lastPageNum = 1; if (isset($shops)) { if (method_exists($shops, 'currentPage')) { $currentPageNum = $shops->currentPage(); } if (method_exists($shops, 'lastPage')) { $lastPageNum = $shops->lastPage(); } } @endphp @endpush