kuvia/resources/views/gallery/new.blade.php

55 lines
2.4 KiB
PHP
Raw Normal View History

2021-01-12 14:49:45 +00:00
@extends('layout/template')
@section('content')
2021-01-17 14:32:25 +00:00
<div class="row" style="margin-top: 20px;">
2021-01-12 14:49:45 +00:00
<div class="col-md-12">
2021-01-17 14:32:25 +00:00
<h1>Gallery</h1>
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
</div>
</div>
<div class="row">
<div class="col-md-9">
2021-01-12 14:49:45 +00:00
<form method="post">
@csrf
<input name="name" value="{{ old('name') }}" placeholder="Name" class="form-control">
2021-01-17 14:32:25 +00:00
<textarea name="description" style="height: 300px;" placeholder="Description" class="form-control">{{ old('description') }}</textarea>
2021-01-12 14:49:45 +00:00
<div class="accordion" id="accordionExample">
<div class="card">
<div class="card-header" id="headingTwo">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Advanced Settings
</button>
</h2>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
<div class="card-body">
<input name="date" value="{{ old('date') }}" class="form-control" placeholder="Create Date (yyyy-mm-dd, today if empty)">
<input name="url" value="{{ old('url') }}" placeholder="URL" class="form-control">
</div>
</div>
</div>
</div>
2021-01-17 14:32:25 +00:00
<input type="submit" class="btn btn-outline-success" value="Save" style="margin-top: 10px;">
2021-01-12 14:49:45 +00:00
</form>
</div>
2021-01-17 14:32:25 +00:00
<div class="col-md-3">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="customSwitch1" checked="">
<label class="custom-control-label" for="customSwitch1">Publish</label>
</div>
</div>
</div>
2021-01-12 14:49:45 +00:00
@endsection