108 lines
4.7 KiB
PHP
108 lines
4.7 KiB
PHP
<div>
|
|
<div class="row">
|
|
<div class="card-body">
|
|
<div class="d-flex align-items-start align-items-sm-center gap-4">
|
|
|
|
<img src="{{ asset(!empty($testimonial->image_path) ? 'storage/uploads/' . $testimonial->image_path : 'backend/uploads/images/no-Image.jpg') }}"
|
|
alt="testimonial-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="mb-3">
|
|
<label class="form-label" for="basic-default-name">Name</label>
|
|
<input type="text" class="form-control" name="name" value="{{ old('name', $testimonial->name ?? '') }}"
|
|
placeholder="e.g. John Doe" required />
|
|
@error('name')
|
|
<div class="text-danger">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
<div class="row">
|
|
<div class="mb-3 col-md-6">
|
|
<label class="form-label" for="basic-default-name">Designation</label>
|
|
<input type="text" class="form-control" name="designation"
|
|
value="{{ old('designation', $testimonial->designation ?? '') }}"
|
|
placeholder="e.g. Chief Executive Officer" required />
|
|
@error('designation')
|
|
<div class="text-danger">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-3 col-md-6">
|
|
<label class="form-label" for="basic-default-company">Ordering</label>
|
|
<input type="number" class="form-control" name="ordering"
|
|
value="{{ old('ordering', $testimonial->ordering ?? '') }}" placeholder="e.g. 15" required />
|
|
@error('ordering')
|
|
<div class="text-danger">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="basic-default-message">Statement</label>
|
|
<textarea name="" id="mainTextarea" class="d-none"> {{ !empty($testimonial) ? $testimonial->statement : '' }}</textarea>
|
|
<textarea name="statement" class="form-control full-editor" id="editorTextarea" rows='5'
|
|
placeholder="Our stay at Jhigu CMS was nothing short of amazing. The staff's hospitality and the luxurious amenities made our vacation unforgettable. We can't wait to return!">
|
|
</textarea>
|
|
@error('statement')
|
|
<div class="text-danger">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-3 col-md-12">
|
|
<label for="exampleFormControlTextarea1" class="form-label">Link</label>
|
|
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" name="link"
|
|
placeholder="e.g:video link">{{ !empty($testimonial) ? $testimonial->link : '' }}</textarea>
|
|
@error('link')
|
|
<div class="text-danger">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-3 col-md-6">
|
|
<label class="form-label" for="basic-default-company">Status</label>
|
|
<select class="select2 form-select" id="basic-default-company select2Basic" aria-label="Default select example"
|
|
name="status" required>
|
|
<option value="active"{{ ($testimonial->status ?? '') == 'active' ? 'selected' : '' }}>Active</option>
|
|
<option value="inactive"{{ ($testimonial->status ?? '') == 'inactive' ? 'selected' : '' }}>Inactive
|
|
</option>
|
|
</select>
|
|
@error('status')
|
|
<div class="text-danger">{{ $message }}</div>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<button type="submit" class="btn btn-primary">
|
|
{{ empty($testimonial) ? 'Save Testimonial' : 'Update Testimonial' }}
|
|
</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
|