61 lines
2.5 KiB
PHP
61 lines
2.5 KiB
PHP
<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($activity->image_path) ? 'storage/uploads/' . $activity->image_path : 'backend/uploads/images/no-Image.jpg') }}"
|
|
alt="activity-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">Name</label>
|
|
<input type="text" class="form-control" name="name" value="{{ old('name', $activity->name ?? '') }}"
|
|
placeholder="e.g. Hiking" required />
|
|
</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"{{ ($activity->status ?? '') == 'active' ? 'selected' : '' }}>Active</option>
|
|
<option value="inactive"{{ ($activity->status ?? '') == 'inactive' ? 'selected' : '' }}>Inactive</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<button type="submit" class="btn btn-primary">
|
|
@if (empty($activity))
|
|
Save Activity
|
|
@else
|
|
Update Activity
|
|
@endif
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
@push('required-styles')
|
|
@include('admin::vendor.select2.style')
|
|
@endpush
|
|
|
|
@push('required-scripts')
|
|
@include('admin::vendor.select2.script')
|
|
@endpush
|