first commit
This commit is contained in:
0
Modules/Meeting/resources/assets/.gitkeep
Normal file
0
Modules/Meeting/resources/assets/.gitkeep
Normal file
0
Modules/Meeting/resources/assets/js/app.js
Normal file
0
Modules/Meeting/resources/assets/js/app.js
Normal file
0
Modules/Meeting/resources/assets/sass/app.scss
Normal file
0
Modules/Meeting/resources/assets/sass/app.scss
Normal file
0
Modules/Meeting/resources/views/.gitkeep
Normal file
0
Modules/Meeting/resources/views/.gitkeep
Normal file
29
Modules/Meeting/resources/views/layouts/master.blade.php
Normal file
29
Modules/Meeting/resources/views/layouts/master.blade.php
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<title>Meeting Module - {{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
<meta name="description" content="{{ $description ?? '' }}">
|
||||
<meta name="keywords" content="{{ $keywords ?? '' }}">
|
||||
<meta name="author" content="{{ $author ?? '' }}">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
||||
|
||||
{{-- Vite CSS --}}
|
||||
{{-- {{ module_vite('build-meeting', 'resources/assets/sass/app.scss') }} --}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@yield('content')
|
||||
|
||||
{{-- Vite JS --}}
|
||||
{{-- {{ module_vite('build-meeting', 'resources/assets/js/app.js') }} --}}
|
||||
</body>
|
23
Modules/Meeting/resources/views/meeting/create.blade.php
Normal file
23
Modules/Meeting/resources/views/meeting/create.blade.php
Normal file
@ -0,0 +1,23 @@
|
||||
@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='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->form('POST')->route('meeting.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('meeting::meeting.partials.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
26
Modules/Meeting/resources/views/meeting/edit.blade.php
Normal file
26
Modules/Meeting/resources/views/meeting/edit.blade.php
Normal file
@ -0,0 +1,26 @@
|
||||
@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='card'>
|
||||
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->modelForm($meeting, 'PUT')->route('meeting.update', $meeting->id)->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('meeting::meeting.partials.action')
|
||||
|
||||
{{ html()->closeModelForm() }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
94
Modules/Meeting/resources/views/meeting/index.blade.php
Normal file
94
Modules/Meeting/resources/views/meeting/index.blade.php
Normal file
@ -0,0 +1,94 @@
|
||||
@extends('layouts.app')
|
||||
@use('Carbon\Carbon')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('meeting.create') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Create</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="buttons-datatables" class="display table-sm table-bordered table">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th class="tb-col"><span class="overline-title">S.N</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Title</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Date</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Meeting with</span></th>
|
||||
<th class="tb-col"><span class="overline-title"> Client</span></th>
|
||||
<th class="tb-col"><span class="overline-title"> Team Member</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Start Time</span></th>
|
||||
<th class="tb-col"><span class="overline-title">End Time</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Location</span></th>
|
||||
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($meetingLists as $index => $item)
|
||||
<tr>
|
||||
<td class="tb-col">{{ $index + 1 }}</td>
|
||||
<td class="tb-col">{{ $item->title }}</td>
|
||||
<td class="tb-col">{{ $item->date?->format('Y-m-d') }}
|
||||
<br><span
|
||||
class="text-danger">({{ $item->date?->diffForHumans(Carbon::now()) }})</span>
|
||||
</td>
|
||||
<td class="tb-col">{{ $item->meeting_with }}</td>
|
||||
<td class="tb-col">
|
||||
{{ $item->meeting_with == 'client' ? $item->client?->client_name : '-' }}</td>
|
||||
<td class="tb-col">
|
||||
@if ($item->meeting_with == 'member')
|
||||
<div class="avatar-group flex-nowrap">
|
||||
@isset($item->members)
|
||||
@foreach ($item->members as $memberId)
|
||||
<div class="avatar-group-item">
|
||||
<a href="javascript: void(0);" class="d-inline-block">
|
||||
<img src="{{ asset(optional($employeeRepository->getEmployeeById($memberId))->profile_pic) }}"
|
||||
alt="" class="rounded-circle avatar-xxs">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@endisset
|
||||
</div>
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
<td class="tb-col">{{ Carbon::parse($item->start_time)->format('h:i A') }}</td>
|
||||
<td class="tb-col">{{ Carbon::parse($item->end_time)->format('h:i A') }}</td>
|
||||
<td class="tb-col">{{ $item->location }}</td>
|
||||
<td class="tb-col">
|
||||
<div class="hstack flex-wrap gap-3">
|
||||
<a href="javascript:void(0);" class="link-info fs-15 view-item-btn"
|
||||
data-bs-toggle="modal" data-bs-target="#viewModal">
|
||||
<i class="ri-eye-line"></i>
|
||||
</a>
|
||||
<a href="{{ route('meeting.edit', $item->id) }}"
|
||||
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
|
||||
|
||||
<a href="javascript:void(0);"
|
||||
data-link="{{ route('meeting.destroy', $item->id) }}"
|
||||
data-id="{{ $item->id }}" class="link-danger fs-15 remove-item-btn"><i
|
||||
class="ri-delete-bin-line"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@ -0,0 +1,109 @@
|
||||
<div class="row gy-3">
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-12">
|
||||
{{ html()->label('Meeting with')->class('form-label') }}
|
||||
|
||||
<div class="row mt-2">
|
||||
<div class="col-sm-3">
|
||||
<div class="form-check form-radio-success">
|
||||
{{ html()->radio('meeting_with', false, 'client')->class('form-check-input meeting-with')->checked($editable && $meeting->meeting_with == 'client') }}
|
||||
{{ html()->label('Client')->class('form-check-label me-1') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="form-check form-radio-success">
|
||||
{{ html()->radio('meeting_with', false, 'member')->class('form-check-input meeting-with')->checked($editable && $meeting->meeting_with == 'member') }}
|
||||
{{ html()->label('Office Members')->class('form-check-label me-1') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Title')->class('form-label') }}
|
||||
{{ html()->text('title')->class('form-control')->placeholder('Meeting Title')->required() }}
|
||||
{{ html()->div('Please mention meeting title')->class('invalid-feedback') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Date')->class('form-label') }}
|
||||
<div class="input-group">
|
||||
{{ html()->text('date')->class('form-control flatpickr-date')->required() }}
|
||||
<span class="input-group-text"><i class="ri-calendar-line"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 col-md-6 client-dropdown d-none">
|
||||
{{ html()->label('Client')->class('form-label') }}
|
||||
{{ html()->select('client_id', $clientList)->class('form-select select2')->placeholder('Select Client') }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 col-md-6 member-dropdown d-none">
|
||||
{{ html()->label('Members')->class('form-label') }}
|
||||
{{ html()->multiselect('members[]', $memberList)->class('form-control select2')->placeholder('Select Members')->value($task->members ?? null)->attributes(['multiple', 'id' => 'members']) }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 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-4 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-4 col-md-6">
|
||||
{{ html()->label('Location')->class('form-label') }}
|
||||
{{ html()->text('location')->class('form-control')->placeholder('Meeting Location')->required() }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
{{ html()->label('Description')->class('form-label') }}
|
||||
{{ html()->textarea('description')->class('form-control ckeditor-classic')->placeholder('Meeting Description') }}
|
||||
</div>
|
||||
|
||||
<x-form-buttons :editable='$editable' label='Add' href="{{ route('meeting.index') }}" />
|
||||
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.meeting-with').change(function() {
|
||||
|
||||
let value = $(this).val();
|
||||
|
||||
console.log(value);
|
||||
|
||||
if (value == 'member') {
|
||||
$('.member-dropdown').removeClass('d-none');
|
||||
$('.client-dropdown').addClass('d-none');
|
||||
} else {
|
||||
$('.member-dropdown').addClass('d-none');
|
||||
$('.client-dropdown').removeClass('d-none');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
64
Modules/Meeting/resources/views/meeting/show.blade.php
Normal file
64
Modules/Meeting/resources/views/meeting/show.blade.php
Normal file
@ -0,0 +1,64 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
@include('layouts.partials.breadcrumb', ['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">Meeting Title</span></th>
|
||||
<td>{{ $item->title }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span class="fw-medium">Date</span></th>
|
||||
<td> {{ $item->date }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span class="fw-medium"> Client </span></th>
|
||||
<td>{{ ($item->client)->client_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span class="fw-medium">Team Member</span></th>
|
||||
<td>{{ ($item->employee)->first_name }}</td>
|
||||
</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('meeting.index') }}" class="btn btn-secondary w-sm">Back</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
|
||||
@endpush
|
Reference in New Issue
Block a user