Files
aroginhealthcare/Modules/Package/resources/views/partial/form.blade.php
2025-08-17 16:23:14 +05:45

99 lines
4.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div>
<div class="row mb-4">
<div class="card-body">
<div class="d-flex align-items-start align-items-sm-center gap-4">
<img src="{{ asset(!empty($package->image_path) ? 'storage/uploads/' . $package->image_path : 'backend/uploads/images/no-Image.jpg') }}"
alt="package-image input-file" class="d-block rounded show-image" height="100" width="100" />
<div class="button-wrapper">
<label for="upload" class="btn btn-primary me-2 mb-4" tabindex="0">
<span class="d-none d-sm-block">Upload</span>
<i class="bx bx-upload d-block d-sm-none"></i>
<input type="file" id="upload" class="input-file" name="image" hidden
accept="image/png, image/jpeg" />
</label>
<button type="button" class="btn btn-label-secondary image-reset mb-4">
<i class="bx bx-reset d-block d-sm-none"></i>
<span class="d-none d-sm-block">Reset</span>
</button>
<p class="mb-0">Allowed JPG, GIF or PNG. Max size of 3Mb</p>
</div>
</div>
</div>
<hr class="my-0" />
</div>
<div class="row">
<div class="mb-3 col-md-6">
<label class="form-label" for="basic-default-name">Title</label>
<input type="text" class="form-control" name="title" value="{{ old('title', $package->title ?? '') }}"
placeholder="e.g. 2 Days Italy Road Trip (Couple)" required />
</div>
<div class="mb-3 col-md-6">
<label class="form-label" for="basic-default-company">Country</label>
<select id="select2Basic" class="select2 form-select form-select-lg" name="country_id"
data-allow-clear="true">
@foreach ($countries ?? [] as $country)
<option value="{{ $country->id }}"
{{ ($package->country_id ?? '') == $country->id ? 'selected' : '' }}>{{ $country->name }}
</option>
@endforeach
</select>
</div>
</div>
<div class="mb-3">
<label class="form-label" for="basic-default-message">Description</label>
<textarea name="" id="mainTextarea" class="d-none">{{ !empty($package) ? $package->description : '' }}</textarea>
<textarea name="description" class="form-control full-editor" id="editorTextarea" rows='10'
placeholder="Algarves Benagil Cave beach is one of those extra special ones.
The only way in is by kayaking or paddle boating, which obviously adds a more
elusive touch to this already amazing place. ....."></textarea>
</div>
<div class="row">
<div class="mb-3 col-md-6">
<label class="form-label" for="basic-default-company">Price</label>
<input class="form-control" type="text" name="price" value="{{ old('price', $package->price ?? '') }}"
placeholder="e.g. 25000.00" required />
</div>
<div class="mb-3 col-md-6">
<label class="form-label" for="basic-default-company">Ordering</label>
<input class="form-control" type="number" name="ordering"
value="{{ old('ordering', $package->ordering ?? '') }}" placeholder="e.g. 2" required />
</div>
</div>
<div class="row">
<div class="mb-3 col-md-6">
<label class="form-label" for="basic-default-company">Duration</label>
<input class="form-control" type="text" name="duration"
value="{{ old('duration', $package->duration ?? '') }}" placeholder="e.g. 10" required />
</div>
<div class="mb-3 col-md-6">
<label class="form-label" for="basic-default-company">Group Size</label>
<input class="form-control" type="number" name="group_size"
value="{{ old('group_size', $package->group_size ?? '') }}" placeholder="e.g. 10" required />
</div>
</div>
<div>
<button type="submit" class="btn btn-primary">
@if (empty($package))
Save Package
@else
Update Package
@endif
</button>
</div>
</div>
@push('required-styles')
@include('admin::vendor.full_editor.style')
@include('admin::vendor.select2.style')
@endpush
@push('required-scripts')
@include('admin::vendor.textareaContentDisplay.script')
@include('admin::vendor.full_editor.script')
@include('admin::vendor.select2.script')
@endpush