2025-07-05 02:37:38 +02:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
<div class="max-w-4xl mx-auto py-6 sm:px-6 lg:px-8">
|
|
|
|
|
<div class="px-4 py-6 sm:px-0">
|
|
|
|
|
<div class="mb-6">
|
|
|
|
|
<div class="flex items-center justify-between">
|
|
|
|
|
<div>
|
|
|
|
|
<h1 class="text-2xl font-semibold text-gray-900">{{ $feed->name }}</h1>
|
|
|
|
|
<p class="mt-1 text-sm text-gray-600">{{ $feed->type_display }} • {{ strtoupper($feed->language) }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center space-x-3">
|
|
|
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium
|
|
|
|
|
{{ $feed->is_active ? 'bg-green-100 text-green-800' : 'bg-red-100 text-red-800' }}">
|
|
|
|
|
{{ $feed->is_active ? 'Active' : 'Inactive' }}
|
|
|
|
|
</span>
|
|
|
|
|
<a href="{{ route('feeds.edit', $feed) }}" class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded">
|
|
|
|
|
Edit Feed
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bg-white shadow overflow-hidden sm:rounded-lg">
|
|
|
|
|
<div class="px-4 py-5 sm:px-6">
|
|
|
|
|
<h3 class="text-lg leading-6 font-medium text-gray-900">Feed Details</h3>
|
|
|
|
|
<p class="mt-1 max-w-2xl text-sm text-gray-500">Information about this content feed.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="border-t border-gray-200 px-4 py-5 sm:px-6">
|
|
|
|
|
<dl class="grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2">
|
|
|
|
|
<div>
|
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Name</dt>
|
|
|
|
|
<dd class="mt-1 text-sm text-gray-900">{{ $feed->name }}</dd>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Type</dt>
|
|
|
|
|
<dd class="mt-1 text-sm text-gray-900">
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
@if($feed->type === 'rss')
|
2025-07-06 01:42:39 +02:00
|
|
|
<x-heroicon-o-rss class="w-4 h-4 text-orange-500 mr-2" />
|
2025-07-05 02:37:38 +02:00
|
|
|
@else
|
2025-07-06 01:42:39 +02:00
|
|
|
<x-heroicon-o-globe-alt class="w-4 h-4 text-blue-500 mr-2" />
|
2025-07-05 02:37:38 +02:00
|
|
|
@endif
|
|
|
|
|
{{ $feed->type_display }}
|
|
|
|
|
</div>
|
|
|
|
|
</dd>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<dt class="text-sm font-medium text-gray-500">URL</dt>
|
|
|
|
|
<dd class="mt-1 text-sm text-gray-900">
|
|
|
|
|
<a href="{{ $feed->url }}" target="_blank" class="text-indigo-600 hover:text-indigo-500">
|
|
|
|
|
{{ $feed->url }}
|
2025-07-06 01:42:39 +02:00
|
|
|
<x-heroicon-o-arrow-top-right-on-square class="w-3 h-3 ml-1" />
|
2025-07-05 02:37:38 +02:00
|
|
|
</a>
|
|
|
|
|
</dd>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Language</dt>
|
|
|
|
|
<dd class="mt-1 text-sm text-gray-900">{{ strtoupper($feed->language) }}</dd>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Status</dt>
|
|
|
|
|
<dd class="mt-1 text-sm text-gray-900">{{ $feed->status }}</dd>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Created</dt>
|
|
|
|
|
<dd class="mt-1 text-sm text-gray-900">{{ $feed->created_at->format('M j, Y g:i A') }}</dd>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@if($feed->last_fetched_at)
|
|
|
|
|
<div>
|
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Last Fetched</dt>
|
|
|
|
|
<dd class="mt-1 text-sm text-gray-900">{{ $feed->last_fetched_at->format('M j, Y g:i A') }}</dd>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if($feed->description)
|
|
|
|
|
<div class="sm:col-span-2">
|
|
|
|
|
<dt class="text-sm font-medium text-gray-500">Description</dt>
|
|
|
|
|
<dd class="mt-1 text-sm text-gray-900">{{ $feed->description }}</dd>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="mt-6 flex items-center justify-between">
|
|
|
|
|
<a href="{{ route('feeds.index') }}" class="text-indigo-600 hover:text-indigo-500 font-medium">
|
|
|
|
|
← Back to Feeds
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center space-x-3">
|
|
|
|
|
<a href="{{ route('feeds.edit', $feed) }}" class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50">
|
|
|
|
|
Edit
|
|
|
|
|
</a>
|
|
|
|
|
<form action="{{ route('feeds.destroy', $feed) }}" method="POST" class="inline"
|
|
|
|
|
onsubmit="return confirm('Are you sure you want to delete this feed?')">
|
|
|
|
|
@csrf
|
|
|
|
|
@method('DELETE')
|
|
|
|
|
<button type="submit" class="bg-red-600 py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white hover:bg-red-700">
|
|
|
|
|
Delete Feed
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endsection
|