New-OMIS/Modules/Admin/resources/views/calendars/index.blade.php

225 lines
11 KiB
PHP
Raw Normal View History

2024-04-15 12:16:31 +00:00
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
<!-- start page title -->
@include('layouts.partials.breadcrumb', ['title' => $title])
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="row">
<div class="col-xl-3">
<div class="card card-h-100">
<div class="card-body">
<button class="btn btn-primary w-100" id="btn-new-event"><i class="mdi mdi-plus"></i> Create New
Event</button>
<div id="external-events">
<br>
<p class="text-muted">Drag and drop your event or click in the calendar</p>
<div class="external-event fc-event bg-success-subtle text-success" data-class="bg-success-subtle">
<i class="mdi mdi-checkbox-blank-circle me-2"></i>New Event Planning
</div>
<div class="external-event fc-event bg-info-subtle text-info" data-class="bg-info-subtle">
<i class="mdi mdi-checkbox-blank-circle me-2"></i>Meeting
</div>
<div class="external-event fc-event bg-warning-subtle text-warning" data-class="bg-warning-subtle">
<i class="mdi mdi-checkbox-blank-circle me-2"></i>Generating Reports
</div>
<div class="external-event fc-event bg-danger-subtle text-danger" data-class="bg-danger-subtle">
<i class="mdi mdi-checkbox-blank-circle me-2"></i>Create New theme
</div>
</div>
</div>
</div>
<div>
<h5 class="mb-1">Upcoming Events</h5>
<p class="text-muted">Don't miss scheduled events</p>
2024-04-16 05:42:13 +00:00
<div class="me-n1 mb-3 pe-2" data-simplebar style="height: 400px">
<div id="upcoming-event-list"></div>
2024-04-15 12:16:31 +00:00
</div>
</div>
<div class="card">
<div class="card-body bg-info-subtle">
<div class="d-flex">
<div class="flex-shrink-0">
2024-04-16 05:42:13 +00:00
<i data-feather="calendar" class="text-info icon-dual-info"></i>
2024-04-15 12:16:31 +00:00
</div>
<div class="flex-grow-1 ms-3">
<h6 class="fs-15">Welcome to your Calendar!</h6>
<p class="text-muted mb-0">Event that applications book will appear here. Click on an event to see
the details and manage applicants event.</p>
</div>
</div>
</div>
</div>
<!--end card-->
</div> <!-- end col-->
<div class="col-xl-9">
<div class="card card-h-100">
<div class="card-body">
2024-04-16 05:42:13 +00:00
<div id="calendar"></div>
2024-04-15 12:16:31 +00:00
</div>
</div>
</div><!-- end col -->
</div>
<!--end row-->
2024-04-16 05:42:13 +00:00
<div style='clear:both'></div>
2024-04-15 12:16:31 +00:00
<!-- Add New Event MODAL -->
2024-04-16 05:42:13 +00:00
<div class="modal fade" id="event-modal" tabindex="-1">
2024-04-15 12:16:31 +00:00
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-0">
<div class="modal-header bg-info-subtle p-3">
2024-04-16 05:42:13 +00:00
<h5 class="modal-title" id="modal-title">Event</h5>
2024-04-15 12:16:31 +00:00
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-hidden="true"></button>
</div>
<div class="modal-body p-4">
2024-04-16 05:42:13 +00:00
<form class="needs-validation" name="event-form" id="form-event" novalidate>
2024-04-15 12:16:31 +00:00
<div class="text-end">
2024-04-16 05:42:13 +00:00
<a href="#" class="btn btn-sm btn-soft-primary" id="edit-event-btn" data-id="edit-event"
onclick="editEvent(this)" role="button">Edit</a>
2024-04-15 12:16:31 +00:00
</div>
<div class="event-details">
<div class="d-flex mb-2">
<div class="flex-grow-1 d-flex align-items-center">
<div class="me-3 flex-shrink-0">
<i class="ri-calendar-event-line text-muted fs-16"></i>
</div>
<div class="flex-grow-1">
2024-04-16 05:42:13 +00:00
<h6 class="d-block fw-semibold mb-0" id="event-start-date-tag"></h6>
2024-04-15 12:16:31 +00:00
</div>
</div>
</div>
<div class="d-flex align-items-center mb-2">
<div class="me-3 flex-shrink-0">
<i class="ri-time-line text-muted fs-16"></i>
</div>
<div class="flex-grow-1">
<h6 class="d-block fw-semibold mb-0"><span id="event-timepicker1-tag"></span> - <span
id="event-timepicker2-tag"></span></h6>
</div>
</div>
<div class="d-flex align-items-center mb-2">
<div class="me-3 flex-shrink-0">
<i class="ri-map-pin-line text-muted fs-16"></i>
</div>
<div class="flex-grow-1">
<h6 class="d-block fw-semibold mb-0"> <span id="event-location-tag"></span></h6>
</div>
</div>
<div class="d-flex mb-3">
<div class="me-3 flex-shrink-0">
<i class="ri-discuss-line text-muted fs-16"></i>
</div>
<div class="flex-grow-1">
2024-04-16 05:42:13 +00:00
<p class="d-block text-muted mb-0" id="event-description-tag"></p>
2024-04-15 12:16:31 +00:00
</div>
</div>
</div>
<div class="row event-form">
<div class="col-12">
<div class="mb-3">
<label class="form-label">Type</label>
2024-04-16 05:42:13 +00:00
<select class="form-select d-none" name="category" id="event-category" required>
<option value="bg-danger-subtle">Danger</option>
<option value="bg-success-subtle">Success</option>
<option value="bg-primary-subtle">Primary</option>
<option value="bg-info-subtle">Info</option>
<option value="bg-dark-subtle">Dark</option>
<option value="bg-warning-subtle">Warning</option>
</select>
2024-04-15 12:16:31 +00:00
<div class="invalid-feedback">Please select a valid event category</div>
</div>
</div>
<!--end col-->
<div class="col-12">
<div class="mb-3">
<label class="form-label">Event Name</label>
2024-04-16 05:42:13 +00:00
<input class="form-control d-none" placeholder="Enter event name" type="text"
name="title" id="event-title" required value="" />
2024-04-15 12:16:31 +00:00
<div class="invalid-feedback">Please provide a valid event name</div>
</div>
</div>
<!--end col-->
<div class="col-12">
<div class="mb-3">
<label>Event Date</label>
2024-04-16 05:42:13 +00:00
<div class="input-group d-none">
<input type="text" id="event-start-date" class="form-control flatpickr flatpickr-input"
placeholder="Select date" readonly required>
2024-04-15 12:16:31 +00:00
<span class="input-group-text"><i class="ri-calendar-event-line"></i></span>
</div>
</div>
</div>
<!--end col-->
<div class="col-12" id="event-time">
<div class="row">
<div class="col-6">
<div class="mb-3">
<label class="form-label">Start Time</label>
2024-04-16 05:42:13 +00:00
<div class="input-group d-none">
<input id="timepicker1" type="text" class="form-control flatpickr flatpickr-input"
placeholder="Select start time" readonly>
2024-04-15 12:16:31 +00:00
<span class="input-group-text"><i class="ri-time-line"></i></span>
</div>
</div>
</div>
<div class="col-6">
<div class="mb-3">
<label class="form-label">End Time</label>
2024-04-16 05:42:13 +00:00
<div class="input-group d-none">
<input id="timepicker2" type="text" class="form-control flatpickr flatpickr-input"
placeholder="Select end time" readonly>
2024-04-15 12:16:31 +00:00
<span class="input-group-text"><i class="ri-time-line"></i></span>
</div>
</div>
</div>
</div>
</div>
<!--end col-->
<div class="col-12">
<div class="mb-3">
<label for="event-location">Location</label>
<div>
2024-04-16 05:42:13 +00:00
<input type="text" class="form-control d-none" name="event-location"
2024-04-15 12:16:31 +00:00
id="event-location" placeholder="Event location">
</div>
</div>
</div>
<!--end col-->
2024-04-16 05:42:13 +00:00
<input type="hidden" id="eventid" name="eventid" value="" />
2024-04-15 12:16:31 +00:00
<div class="col-12">
<div class="mb-3">
<label class="form-label">Description</label>
2024-04-16 05:42:13 +00:00
<textarea class="form-control d-none" id="event-description" placeholder="Enter a description" rows="3"
2024-04-15 12:16:31 +00:00
spellcheck="false"></textarea>
</div>
</div>
<!--end col-->
</div>
<!--end row-->
<div class="hstack justify-content-end gap-2">
2024-04-16 05:42:13 +00:00
<button type="button" class="btn btn-soft-danger" id="btn-delete-event"><i
2024-04-15 12:16:31 +00:00
class="ri-close-line align-bottom"></i> Delete</button>
<button type="submit" class="btn btn-success" id="btn-save-event">Add Event</button>
</div>
</form>
</div>
</div> <!-- end modal-content-->
</div> <!-- end modal dialog-->
</div> <!-- end modal-->
<!-- end modal-->
</div>
2024-04-16 05:42:13 +00:00
</div> <!-- end row-->
2024-04-15 12:16:31 +00:00
</div>
</div>
@endsection