bookinventory/resources/views/add.blade.php
Tyler d086b29bcc
All checks were successful
continuous-integration/drone/push Build is passing
A ton of progress, search start
2020-12-26 05:46:23 -05:00

30 lines
1.0 KiB
PHP

@extends('layouts.main')
@section('content')
<form id="add-form" method="POST" action="{{ route('save') }}">
{{ csrf_field() }}
<div class="form-row justify-content-md-center">
<div class="col-4">
<select name="location" class="form-control select2-location">
</select>
</div>
</div>
<br />
<div class="row-container">
@if (!empty($old))
@foreach ($old as $index => $item)
@include('partials/row', [ 'index' => $index, 'item' => $item ])
@endforeach
@include('partials/row', [ 'index' => count($old), 'item' => [] ])
@else
@include('partials/row', [ 'index' => 0])
@endif
</div>
<div class="row">
<button class="btn btn-primary" name="save" type="submit">
Save
</button>
</div>
</form>
@include('partials/row', [ 'id' => 'add-template', 'htmlClass' => 'invisible' ])
@endsection