@extends('master') @section('title', $schedule->title) @section('content') @php \Carbon\Carbon::setLocale('sv'); @endphp
{{$schedule->location}}
{{$schedule->title}}
Skapad av {{$schedule->user->name}} {{$schedule->created_at->diffForHumans()}}
@foreach($schedule_dates as $dates) @endforeach @foreach($schedule_dates as $dates) @php $count=0; @endphp @foreach($participant_dates as $p_dates) @if($dates->id == $p_dates->schedule_date_id) @if($p_dates->participant_status == 1) @php $count++; @endphp @endif @endif @endforeach @if($schedule->hidden_schedule == 'no') @else @endif @endforeach @php $answered = 0; $date_now = date("Y-m-d"); $deadline = 0; $hidden = 0; @endphp @if($schedule->hidden_schedule == 'yes') @php $hidden = 1; @endphp @endif @foreach($participants as $participant) @if($hidden === 1) @if($participant->user_id == Auth::id()) @foreach($participant_dates as $p_dates) @if($participant->id == $p_dates->participant_id) @endif @endforeach @endif @else @foreach($participant_dates as $p_dates) @if($participant->id == $p_dates->participant_id) @endif @endforeach @if($participant->user_id == Auth::id()) @else @endif @endif @if($schedule->one_answer == 'yes') @if($participant->user_id === Auth::id()) @php $answered = 1; @endphp @else @php $answered = 0; @endphp @endif @else @php $answered = 0; @endphp @endif @endforeach @if($schedule->reply_deadline == 'yes') @if($schedule->reply_deadline_date < $date_now) @php $deadline = 1; @endphp @else @php $deadline = 0; @endphp @endif @endif @if($schedule->one_answer == 'yes' && Auth::guest()) @php $answered = 1; @endphp @endif @php $user = 0; @endphp @if(!Auth::guest()) @php $user = Auth::id(); @endphp @endif @if($answered != 1 && $deadline == 0 && $schedule->status == 'yes') @csrf @php $date_count=0; @endphp @foreach($schedule_dates as $dates) @php $date_count++; @endphp @endforeach @php $date_count=0; @endphp @foreach($schedule_dates as $dates) @php $date_count++; @endphp @endforeach @php $i=0; @endphp @foreach($schedule_dates as $dates) @php $i++; @endphp @if($date_count == $i) @else @endif @endforeach @endif
Name {{ \Carbon\Carbon::parse($dates->schedule_date)->translatedFormat('d') }} {{ \Carbon\Carbon::parse($dates->schedule_date)->translatedFormat('M') }} {{ \Carbon\Carbon::parse($dates->schedule_date)->translatedFormat('Y') }}
@if($dates->time_from == "00:00:00")
Hel dag
@else {{ \Carbon\Carbon::parse($dates->time_from)->translatedFormat('H:i') }}- {{ \Carbon\Carbon::parse($dates->time_to)->translatedFormat('H:i') }} @endif @if($schedule->chosen_time == $dates->id) @endif
{{$schedule->getParticipantCountAttribute()}} Deltagare {{$count}}
{{$participant->name}} @if($p_dates->participant_status == 1) @elseif($p_dates->participant_status == 0) @else @endif @if($p_dates->comment != "") @endif
{{$participant->name}} @if($p_dates->participant_status == 1) @elseif($p_dates->participant_status == 0) @else @endif @if($p_dates->comment != "") @endif

Alla med länken kan rösta - inget konto behövs



{!! $shareComponent !!}


Allmänna kommentarer

@foreach($comments as $comment) @if($comment->user_id == 0) Okänd @else {{$comment->user->name}} @endif
{{$comment->comment}}
@endforeach

@if($schedule->user_id == Auth::id())

Inställningar

Redigera din tidsförfrågan

Redigera titel / beskrivning
Redigera datum / alternativ
Deltagare

@endif @endsection