aboutsummaryrefslogblamecommitdiff
path: root/resources/views/pages/gallery-add.blade.php
blob: 868f21269c70db6e60c76c137f417c411e1e5461 (plain) (tree)
1
2
3
4
5
6
7






                                                                                            








                                                       
                                


                                                                                           



                                                                                   
@extends('layouts.app')

@section('title', 'Add image')

@section('content')
    <form action="{{ route('galleryAddForm')}}" method="POST" enctype="multipart/form-data">
        @csrf
        @if ($errors->any())
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        <div class="form-group">
            <label for="img">Choose images:</label>
            <br>
            <input type="file" name="images[]" id="img" accept="image/*" multiple required>
        </div>
        <input type="submit" value="Submit" name="submit" class="btn btn-primary"/>
    </form>
@endsection()