bookinventory/resources/views/add.blade.php

30 lines
1.0 KiB
PHP
Raw Normal View History

2020-12-21 07:09:34 +00:00
@extends('layouts.main')
@section('content')
2020-12-26 10:46:23 +00:00
<form id="add-form" method="POST" action="{{ route('save') }}">
{{ csrf_field() }}
2020-12-21 07:09:34 +00:00
<div class="form-row justify-content-md-center">
<div class="col-4">
<select name="location" class="form-control select2-location">
</select>
</div>
</div>
<br />
2020-12-26 10:46:23 +00:00
<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
2020-12-21 07:09:34 +00:00
</div>
2020-12-26 10:46:23 +00:00
<div class="row">
<button class="btn btn-primary" name="save" type="submit">
Save
</button>
2020-12-21 07:09:34 +00:00
</div>
2020-12-26 10:46:23 +00:00
</form>
@include('partials/row', [ 'id' => 'add-template', 'htmlClass' => 'invisible' ])
2020-12-21 07:09:34 +00:00
@endsection