first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<x-dashboard.breadcumb :title="$title" />
{{ html()->form('POST')->route('event.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }}
@include('meeting::events.partials.action')
{{ html()->form()->close() }}
</div>
</div>
@endsection

View File

@@ -0,0 +1,12 @@
<div class="hstack flex-wrap gap-3">
@can('event.show')
<a href="{{ route('event.show', $id) }}" class="link-secondary fs-15"><i class="ri-eye-fill"></i></a>
@endcan
@can('event.edit')
<a href="{{ route('event.edit', $id) }}" class="link-primary fs-15 edit-item-btn"><i class="ri-edit-2-fill"></i></a>
@endcan
@can('event.destroy')
<a href="javascript:void(0);" data-link="{{ route('event.destroy', $id) }}" data-id="{{ $id }}"
class="link-danger fs-15 remove-item-btn"><i class="ri-delete-bin-fill"></i></a>
@endcan
</div>

View File

@@ -0,0 +1,11 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<x-dashboard.breadcumb :title="$title" />
{{ html()->modelForm($event, 'PUT')->route('event.update', $event->id)->class(['needs-validation'])->attributes(['novalidate'])->open() }}
@include('meeting::events.partials.action')
{{ html()->form()->close() }}
</div>
@endsection

View File

@@ -0,0 +1,40 @@
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<x-dashboard.breadcumb :title="$title" />
<div class="mb-1 text-end">
@can('event.create')
<a href="{{ route('event.create') }}" class="btn btn-primary btn-sm waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Create</a>
@endcan
</div>
<div class="card">
<div class="card-body">
@php
$columns = [
[
'title' => 'SN',
'data' => 'DT_RowIndex',
'name' => 'DT_RowIndex',
'orderable' => false,
'searchable' => false,
],
['title' => 'Title', 'data' => 'title', 'name' => 'title'],
['title' => 'Type', 'data' => 'type', 'name' => 'type'],
['title' => 'Date', 'data' => 'date', 'name' => 'date'],
['title' => 'Location', 'data' => 'location', 'name' => 'location'],
['title' => 'Status', 'data' => 'status', 'name' => 'status'],
['title' => 'Action', 'data' => 'action', 'orderable' => false, 'searchable' => false],
];
@endphp
<x-data-table-script :route="route('event.index')" :columns="$columns" />
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,98 @@
<div class="row">
<div class="col-lg-9">
<div class="card">
<div class="card-body">
<div class="row gy-3">
<div class="col-md-12">
{{ html()->label('Title')->class('form-label') }}
{{ html()->text('title')->class('form-control')->placeholder('Event Title')->required() }}
{{ html()->div('Please Enter Event Title')->class('invalid-feedback') }}
</div>
<div class="col-md-6">
{{ html()->label('Event Type')->class('form-label') }}
{{ html()->select('type', config('constants.event_type_options'))->class('form-select select2')->placeholder('Event Type')->required() }}
{{ html()->div('Please Choose Type')->class('invalid-feedback') }}
</div>
<div class="col-md-6">
{{ html()->label('Location')->class('form-label') }}
{{ html()->text('location')->class('form-control')->placeholder('Event Location') }}
</div>
<div class="col-md-6">
{{ html()->label('Start Date')->class('form-label') }}
<div class="input-group">
{{ html()->text('start_date')->class('form-control')->id('event-start-date')->placeholder('Event Start Date')->attributes([
'data-provider' => 'flatpickr',
'data-date-format' => 'Y-m-d',
'data-enable-time' => '',
])->required() }}
<span class="input-group-text"><i class="ri-calendar-event-line"></i></span>
</div>
</div>
<div class="col-md-6">
{{ html()->label('End Date')->class('form-label') }}
<div class="input-group">
{{ html()->text('end_date')->class('form-control')->id('event-end-date')->placeholder('Event End Date')->attributes([
'data-provider' => 'flatpickr',
'data-date-format' => 'Y-m-d',
'data-enable-time' => '',
]) }}
<span class="input-group-text"><i class="ri-calendar-event-line"></i></span>
</div>
</div>
{{-- <div class="col-lg-3 col-md-6">
{{ html()->label('Start Time')->class('form-label') }}
<div class="input-group">
{{ html()->text('start_time')->class('form-control')->placeholder('Event Start Time')->attributes(['data-provider' => 'timepickr', 'data-time-basic' => 'true']) }}
<span class="input-group-text"><i class="ri-time-line"></i></span>
</div>
</div>
<div class="col-lg-3 col-md-6">
{{ html()->label('End Time')->class('form-label') }}
<div class="input-group">
{{ html()->text('end_time')->class('form-control')->placeholder('Event End Time')->attributes(['data-provider' => 'timepickr', 'data-time-basic' => 'true']) }}
<span class="input-group-text"><i class="ri-time-line"></i></span>
</div>
</div> --}}
<div class="col-lg-12 col-md-12">
{{ html()->label('Description')->class('form-label') }}
{{ html()->textarea('description')->class('form-control ckeditor-classic') }}
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Publish</h5>
</div>
<div class="card-body">
<div class="row gy-3">
<div class="col-md-12">
{{ html()->label('Status')->class('form-label') }}
{{ html()->select('status', $status)->class('form-control select2') }}
</div>
<div class="col-12">
<x-form-buttons :editable='$editable' label='Add' href="{{ route('event.index') }}" />
</div>
</div>
</div>
<!-- end card body -->
</div>
</div>
</div>
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@@ -0,0 +1,52 @@
@extends('layouts.app')
@inject('employeeRepository', 'Modules\Employee\Repositories\EmployeeRepository')
@use('Carbon\Carbon')
@section('content')
<div class="container-fluid">
<x-dashboard.breadcumb :title="$title" />
<div class="row">
<div class="col-md-8">
<div class="card card-body p-4">
<div>
<div class="table-responsive">
<table class="table-borderless mb-0 table">
<tbody>
<tr>
<th><span class="fw-medium">Event Title</span></th>
<td>{{ $item->title }}</td>
</tr>
<tr>
<tr>
<th><span class="fw-medium">Start Time</span></th>
<td>{{ Carbon::parse($item->start_time)->format('h:i A') }}</td>
</tr>
<tr>
<th><span class="fw-medium">End Time</span></th>
<td>{{ Carbon::parse($item->end_time)->format('h:i A') }}</td>
</tr>
<tr>
<th><span class="fw-medium">Location</span></th>
<td>{{ $item->location }}</td>
</tr>
<th><span class="fw-medium">Description</span></th>
<td>{!! $item->description !!}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="mb-3 text-end">
<a href="{{ route('event.index') }}" class="btn btn-secondary w-sm">Back</a>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush