@extends('layouts.app')

@section('title','Add Image to gallery')

@section('content')
<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">Add Image to gallery</div>
            <div class="panel-body">
                @include('errors.form')
                <form enctype="multipart/form-data" method="POST" action="{{ url('/admin/gallery/add') }}">
                    {{ csrf_field() }}
                    <input type="hidden" name="_method" value="PUT">
                    <div class="form-group">
                        <label>Title</label>
                        <input type="text" name="title" class="form-control" required>
                    </div>
                    <div class="form-group">
                        <label>Image</label>
                        <input type="file" name="image" class="btn btn-info" required>
                    </div>
                    <input type="submit" name="submit" value="Add Image to gallery" class="btn btn-success">
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
