<?php
/**
 * Created by PhpStorm.
 * User: jirislav
 * Date: 7.5.17
 * Time: 20:05
 */
?>
@if(Session::has('success'))
    <div class="alert alert-success">
        <ul>
            <li>{{ Session::get('success') }}</li>
        </ul>
    </div>
@endif
@if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @if(is_array($errors))
                @foreach ($errors as $error)
                    <li>{{ $error }}</li>
                @endforeach
            @else
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            @endif
        </ul>
    </div>
@endif
@if(Session::has('error'))
    @php($errors = Session::get('error'))
    <div class="alert alert-danger">
        <ul>
            @if(is_array($errors))
                @foreach($errors as $error)
                    <li>{{ $error }}</li>
                @endforeach
            @else
                <li>{{ $errors }}</li>
            @endif
        </ul>
    </div>
@endif