You've already forked Atomcms-edit
Initial commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', __('radio.contests') . ' - ' . config('app.name'))
|
||||
|
||||
@section('content')
|
||||
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
|
||||
<div class="bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg">
|
||||
<div class="p-6 text-white">
|
||||
<h2 class="text-2xl font-bold mb-6">{{ __('radio.active_contests') }}</h2>
|
||||
|
||||
@if(session('error'))
|
||||
<div class="bg-red-500 text-white p-4 rounded mb-4">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($contests->isEmpty())
|
||||
<div class="bg-gray-700 p-6 rounded-lg text-center">
|
||||
<p class="text-gray-300">{{ __('radio.no_contests') }}</p>
|
||||
</div>
|
||||
@else
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
@foreach($contests as $contest)
|
||||
<div class="bg-gray-700 rounded-lg overflow-hidden shadow-lg">
|
||||
<div class="p-6">
|
||||
<h3 class="text-xl font-bold mb-2">{{ $contest->title }}</h3>
|
||||
<p class="text-gray-300 mb-4 line-clamp-3">{{ $contest->description }}</p>
|
||||
|
||||
<div class="flex justify-between items-center text-sm text-gray-400 mb-4">
|
||||
<span>{{ __('radio.ends_in', ['time' => $contest->ends_at->diffForHumans()]) }}</span>
|
||||
<span>{{ $contest->entryCount() }} {{ __('radio.participants') }}</span>
|
||||
</div>
|
||||
|
||||
<a href="{{ route('radio.contests.show', $contest) }}" class="block w-full bg-indigo-600 hover:bg-indigo-700 text-center text-white font-bold py-2 px-4 rounded transition duration-200">
|
||||
{{ __('radio.view_participate') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', $contest->title . ' - ' . __('radio.contests') . ' - ' . config('app.name'))
|
||||
|
||||
@section('content')
|
||||
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
|
||||
<div class="bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg">
|
||||
<div class="p-6 text-white">
|
||||
<div class="mb-6">
|
||||
<a href="{{ route('radio.contests.index') }}" class="text-indigo-400 hover:text-indigo-300 flex items-center">
|
||||
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>
|
||||
{{ __('radio.back_overview') }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<h1 class="text-3xl font-bold mb-4">{{ $contest->title }}</h1>
|
||||
|
||||
<div class="prose prose-invert max-w-none mb-8">
|
||||
{!! nl2br(e($contest->description)) !!}
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-700 p-6 rounded-lg mb-8">
|
||||
<h3 class="text-xl font-semibold mb-4">{{ __('radio.information') }}</h3>
|
||||
<ul class="space-y-2 text-gray-300">
|
||||
<li><strong>{{ __('radio.start_date') }}:</strong> {{ $contest->starts_at->format('d-m-Y H:i') }}</li>
|
||||
<li><strong>{{ __('radio.end_date') }}:</strong> {{ $contest->ends_at->format('d-m-Y H:i') }}</li>
|
||||
<li><strong>{{ __('radio.participants') }}:</strong> {{ $contest->entryCount() }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-700 p-6 rounded-lg">
|
||||
<p class="text-center text-gray-300">{{ __('radio.participate_button') }} form placeholder.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user