v0.10.0e - Made some css fix to the main index dashboard pages

This commit is contained in:
Neerholt 2020-08-17 13:22:08 +02:00
parent 8bba60fa5a
commit 7f42423599
1 changed files with 20 additions and 5 deletions

View File

@ -85,10 +85,21 @@
@if(\App\Event::query()->orderByDesc("date")->first() !== null) @if(\App\Event::query()->orderByDesc("date")->first() !== null)
<div class="event_card"> <div class="event_card">
@if(\App\Event::query()->orderByDesc("date")->first()->resource_id !== null) @if(\App\Event::query()->orderByDesc("date")->first()->resource_id !== null)
<div class="header" style="background-size: cover; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", \App\Event::query()->orderByDesc("date")->first()->resource_id)->first()->filename) }}');"> <div class="header" style="padding-top: 0">
<h3 style="text-shadow: 2px 2px 2px #00788A;" class="text-white text-center">{{ \App\Event::query()->orderByDesc("date")->first()->name }}</h3> <table class="tbl mt-0">
<p style="text-shadow: 2px 2px 2px #00788A"; class="text-white text-center mt-0">{{__('msg.af')}}: {{ \App\Event::query()->orderByDesc("date")->first()->accountable }}</p> <tr>
<p style="text-shadow: 2px 2px 2px #00788A"; class="text-white text-center mt-0">{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->orderByDesc("date")->first()->date))->format('d/m/Y \k\l\. H:i') }}</p> <td><label>Event navn</label></td>
<td>{{ \App\Event::query()->orderByDesc("date")->first()->name }}</td>
</tr>
<tr>
<td><label>Event ansvarlig</label></td>
<td>{{__('msg.af')}}: {{ \App\Event::query()->orderByDesc("date")->first()->accountable }}</td>
</tr>
<tr>
<td><label>Tidspunkt</label></td>
<td>{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime(\App\Event::query()->orderByDesc("date")->first()->date))->format('d/m/Y \k\l\. H:i') }}</td>
</tr>
</table>
</div> </div>
@else @else
<div class="header"> <div class="header">
@ -99,7 +110,11 @@
@endif @endif
<div class="container" style="margin-top: 8px;"> <div class="container" style="margin-top: 8px;">
{!! \App\Helpers::closetags(substr(\App\Event::query()->orderByDesc("date")->first()->description, 0, 300) )!!} <table style="border: 3px solid lightgrey">
<tr>
<td> {!! \App\Helpers::closetags(substr(\App\Event::query()->orderByDesc("date")->first()->description, 0, 300) )!!}</td>
</tr>
</table>
<input type="hidden" name="event_id" value="{{ \App\Event::query()->orderByDesc("date")->first()->id }}"> <input type="hidden" name="event_id" value="{{ \App\Event::query()->orderByDesc("date")->first()->id }}">
<div class="row" style="justify-content: space-between; margin-top: 16px;"> <div class="row" style="justify-content: space-between; margin-top: 16px;">
<a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.accountsignups", ["event" => \App\Event::query()->orderByDesc("date")->first()->id ])}}">{{__('msg.sedeltagere')}}</a> <a style="margin: 0; padding: 0; font-weight: 700;" class="sde-blue text-center" href="{{route("events.accountsignups", ["event" => \App\Event::query()->orderByDesc("date")->first()->id ])}}">{{__('msg.sedeltagere')}}</a>