30 lines
1.0 KiB
PHP
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 |