git add .
git commit "complete tour and flight departure date handling"
This commit is contained in:
@@ -41,6 +41,13 @@
|
||||
class="form-control"
|
||||
value="{{ old('title') }}">
|
||||
|
||||
@error('title')
|
||||
<div class="text-danger mt-2">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@enderror
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -67,6 +74,12 @@
|
||||
</option>
|
||||
|
||||
</select>
|
||||
@error('travel_type_id')
|
||||
<div class="text-danger mt-2">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@enderror
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -79,7 +92,13 @@
|
||||
|
||||
<textarea name="summary"
|
||||
class="form-control"
|
||||
rows="3">{{ old('summary') }}</textarea>
|
||||
rows="3">{{ old('summary') }}
|
||||
</textarea>
|
||||
@error('summary')
|
||||
<div class="text-danger mt-2">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@enderror
|
||||
|
||||
</div>
|
||||
|
||||
@@ -93,7 +112,13 @@
|
||||
|
||||
<textarea name="description"
|
||||
class="form-control"
|
||||
rows="6">{{ old('description') }}</textarea>
|
||||
rows="6">{{ old('description') }}
|
||||
</textarea>
|
||||
@error('description')
|
||||
<div class="text-danger mt-2">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@enderror
|
||||
|
||||
</div>
|
||||
|
||||
@@ -109,28 +134,36 @@
|
||||
name="price"
|
||||
class="form-control"
|
||||
value="{{ old('price') }}">
|
||||
@error('price')
|
||||
<div class="text-danger mt-2">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@enderror
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-4 mb-3">
|
||||
<div class="mb-3">
|
||||
|
||||
<label>
|
||||
تاریخ حرکت
|
||||
<label class="form-label">
|
||||
تاریخ حرکت تور
|
||||
</label>
|
||||
|
||||
<input type="text"
|
||||
name="departure_date"
|
||||
id="departure_date"
|
||||
name="departure_date"
|
||||
class="form-control"
|
||||
autocomplete="off"
|
||||
value="{{ old('departure_date') }}">
|
||||
placeholder="انتخاب تاریخ حرکت">
|
||||
|
||||
@error('departure_date')
|
||||
<div class="text-danger mt-2">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@enderror
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-4 mb-3">
|
||||
|
||||
<label>
|
||||
@@ -140,6 +173,11 @@
|
||||
<input type="file"
|
||||
name="image"
|
||||
class="form-control">
|
||||
@error('image')
|
||||
<div class="text-danger mt-2">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@enderror
|
||||
|
||||
</div>
|
||||
|
||||
@@ -167,6 +205,11 @@
|
||||
</option>
|
||||
|
||||
</select>
|
||||
@error('status')
|
||||
<div class="text-danger mt-2">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@enderror
|
||||
|
||||
</div>
|
||||
|
||||
@@ -185,5 +228,19 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$("#start_date").persianDatepicker({
|
||||
|
||||
format: 'YYYY/MM/DD',
|
||||
|
||||
autoClose: true,
|
||||
|
||||
initialValue: false,
|
||||
|
||||
minDate: new persianDate()
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -104,20 +104,22 @@
|
||||
|
||||
|
||||
|
||||
<div class="col-md-4 mb-3">
|
||||
<div class="mb-3">
|
||||
|
||||
<label>تاریخ حرکت</label>
|
||||
<label class="form-label">
|
||||
تاریخ حرکت تور
|
||||
</label>
|
||||
|
||||
<input type="text"
|
||||
name="departure_date"
|
||||
id="departure_date"
|
||||
id="start_date"
|
||||
name="start_date"
|
||||
class="form-control"
|
||||
value="{{ old('departure_date',$tour->departure_date) }}">
|
||||
placeholder="انتخاب تاریخ حرکت">
|
||||
{{ verta($tour->departure_date)->format('Y/m/d') }}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-4 mb-3">
|
||||
|
||||
<label>وضعیت</label>
|
||||
@@ -188,5 +190,19 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$("#start_date").persianDatepicker({
|
||||
|
||||
format: 'YYYY/MM/DD',
|
||||
|
||||
autoClose: true,
|
||||
|
||||
initialValue: false,
|
||||
|
||||
minDate: new persianDate()
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user