64 lines
2.6 KiB
PHP
64 lines
2.6 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-8">
|
|
<div class="card">
|
|
<div class="card-header">Add New Parking Lot</div>
|
|
|
|
<div class="card-body">
|
|
@if (session('status'))
|
|
<div class="alert alert-success" role="alert">
|
|
{{ session('status') }}
|
|
</div>
|
|
@endif
|
|
|
|
<form method="POST" action="{{ url('/lot/post') }}" enctype="multipart/form-data">
|
|
@csrf
|
|
|
|
<div class="form-group row">
|
|
<label for="name" class="col-md-4 col-form-label text-md-right">{{ __('Lot Name') }}</label>
|
|
|
|
<div class="col-md-6">
|
|
<input id="name" type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" name="name" value="{{ old('name') }}" required autofocus>
|
|
|
|
@if ($errors->has('name'))
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="image" class="col-md-4 col-form-label text-md-right">{{ __('Reference Image') }}</label>
|
|
|
|
<div class="col-md-6">
|
|
<input id="image" type="file" class="form-control{{ $errors->has('image') ? ' is-invalid' : '' }}" name="image" value="{{ old('image') }}" required>
|
|
|
|
@if ($errors->has('image'))
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ $errors->first('image') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group row mb-0">
|
|
<div class="col-md-6 offset-md-4">
|
|
<button type="submit" class="btn btn-primary">
|
|
{{ __('Create Lot') }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|