@extends('layouts.app') @section('title', $site->name . ' - WordPress Sayfaları') @section('content')

{{ $site->name }} - WordPress Sayfaları

WordPress'ten çekilen aktif sayfalar

Yenile @if(!empty($wpPages) && count($wpPages) > 0 && $sites->count() > 0) @endif
@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@if(session('transfer_errors')) @endif
@endif @if($wpPagesError)

Hata

{{ $wpPagesError }}

@elseif(empty($wpPages) || count($wpPages) === 0)

Sayfa Bulunamadı

WordPress sitesinde aktif sayfa bulunamadı.

@else
@foreach($wpPages as $page) @php $pageId = $page['id'] ?? $page['ID'] ?? null; $title = $page['title'] ?? $page['title']['rendered'] ?? 'Başlıksız'; $status = $page['status'] ?? 'unknown'; $dateCreated = isset($page['date']) ? \Carbon\Carbon::parse($page['date'])->format('d.m.Y H:i') : '-'; $dateModified = isset($page['modified']) ? \Carbon\Carbon::parse($page['modified'])->format('d.m.Y H:i') : '-'; $pageUrl = $page['link'] ?? $page['url'] ?? null; @endphp @if($pageId) @endif @endforeach
@if($sites->count() > 0) @endif Başlık Durum Oluşturulma Güncelleme İşlemler
@if($sites->count() > 0) @endif
{{ $title }} @if($pageUrl) {{ $pageUrl }} @endif
@php $statusColors = [ 'publish' => 'bg-green-100 text-green-800', 'draft' => 'bg-yellow-100 text-yellow-800', 'pending' => 'bg-orange-100 text-orange-800', 'private' => 'bg-purple-100 text-purple-800', 'trash' => 'bg-red-100 text-red-800', ]; $statusColor = $statusColors[$status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ $status }} {{ $dateCreated }} {{ $dateModified }} @if($sites->count() > 0) @endif
@endif
@if($sites->count() > 0) @endif @endsection