235 lines
5.7 KiB
PHP
235 lines
5.7 KiB
PHP
@extends('admin.layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<h4 class="mb-4">
|
|
ثبت پرواز جدید
|
|
</h4>
|
|
|
|
@if($errors->any())
|
|
<div class="alert alert-danger">
|
|
<ul class="mb-0">
|
|
@foreach($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
<form action="{{ route('admin.flights.store') }}"
|
|
method="POST"
|
|
enctype="multipart/form-data">
|
|
|
|
@csrf
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
<label>
|
|
ایرلاین
|
|
</label>
|
|
|
|
<input type="text"
|
|
name="airline"
|
|
class="form-control"
|
|
value="{{ old('airline') }}">
|
|
|
|
@error('airline')
|
|
<small class="text-danger">
|
|
{{ $message }}
|
|
</small>
|
|
@enderror
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
<label>
|
|
شماره پرواز
|
|
</label>
|
|
|
|
<input type="text"
|
|
name="flight_number"
|
|
class="form-control"
|
|
value="{{ old('flight_number') }}">
|
|
|
|
@error('flight_number')
|
|
<small class="text-danger">
|
|
{{ $message }}
|
|
</small>
|
|
@enderror
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
<label>
|
|
مبدا
|
|
</label>
|
|
|
|
<input type="text"
|
|
name="origin"
|
|
class="form-control"
|
|
value="{{ old('origin') }}">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
<label>
|
|
مقصد
|
|
</label>
|
|
|
|
<input type="text"
|
|
name="destination"
|
|
class="form-control"
|
|
value="{{ old('destination') }}">
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
ساعت حرکت
|
|
</label>
|
|
|
|
<input type="time"
|
|
name="departure_time"
|
|
class="form-control">
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
ساعت رسیدن
|
|
</label>
|
|
|
|
<input type="time"
|
|
name="arrival_time"
|
|
class="form-control">
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
نوع پرواز
|
|
</label>
|
|
|
|
<select name="type" class="form-control"> <option value="0">داخلی</option>
|
|
<option value="2">خارجی</option>
|
|
<option value="3">چارتر</option>
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
تاریخ حرکت
|
|
</label>
|
|
|
|
<input type="text"
|
|
name="departure_date"
|
|
id="departure_date"
|
|
class="form-control"
|
|
autocomplete="off">
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
کلاس پرواز
|
|
</label>
|
|
|
|
<input type="text"
|
|
name="flight_class"
|
|
class="form-control">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
ظرفیت
|
|
</label>
|
|
|
|
<input type="number"
|
|
name="capacity"
|
|
class="form-control">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
قیمت
|
|
</label>
|
|
|
|
<input type="number"
|
|
name="price"
|
|
class="form-control">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
عکس
|
|
</label>
|
|
|
|
<input type="file"
|
|
name="image"
|
|
class="form-control">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
<label>
|
|
وضعیت
|
|
</label>
|
|
|
|
<select name="status" class="form-control"> <option value="0">پیشنویس</option>
|
|
<option value="1">فعال</option>
|
|
<option value="2">غیرفعال</option>
|
|
<option value="3">تمام شده</option>
|
|
<option value="4">لغو شده</option>
|
|
</select>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<button class="btn btn-primary">
|
|
ذخیره
|
|
</button>
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
@endsection
|