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">
|
2020-12-27 00:34:07 +00:00
|
|
|
@foreach ($locations as $location)
|
|
|
|
<option value="{{ $location->name }}">{{ $location->name }}</option>
|
|
|
|
@endforeach
|
2020-12-21 07:09:34 +00:00
|
|
|
</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">
|
2020-12-27 00:34:07 +00:00
|
|
|
<div class="col-2">
|
|
|
|
<button class="btn btn-primary" name="save" type="submit" style="width:100%">
|
|
|
|
Save
|
|
|
|
</button>
|
|
|
|
</div>
|
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
|