Skip to content

Commit

Permalink
Validating if there is anything to vote.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrux committed Jul 24, 2019
1 parent b2ce55f commit 9372045
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
@extends('layouts.app')

@section('content')
@if ($question)
<survey-instance :question="{{ json_encode($question->toArray()) }}"></survey-instance>
@else
<div class="row">
<div class="col">
<h1 class="display-4 text-center">{{ __('There is nothing to vote, come back later.') }}</h1>
</div>
</div>
@endif
@endsection

0 comments on commit 9372045

Please sign in to comment.