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,246 @@
@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-12">
<div class="card card-body">
<div class="col-md">
<h4 class="fw-bold">{{ $item->title }}</h4>
<div class="hstack flex-wrap gap-3">
<div><i class="ri-building-line me-1 align-bottom"></i> {{ $item->location }}</div>
<div class="vr"></div>
</div>
</div>
<div class="border-top border-top-dashed mt-4 pt-3">
<div class="row gy-2">
<div class="col-lg-2 col-sm-4">
<div>
<p class="text-uppercase fw-medium mb-2">Date :</p>
<h5 class="fs-15 mb-0">
{{ $item->date }}
</h5>
</div>
</div>
<div class="col-lg-2 col-sm-4">
<div>
<p class="text-uppercase fw-medium mb-2">Start Time :</p>
<h5 class="fs-15 mb-0">{{ Carbon::parse($item->start_time)->format('h:i A') }}</h5>
</div>
</div>
<div class="col-lg-2 col-sm-4">
<div>
<p class="text-uppercase fw-medium mb-2">End Time:</p>
<h5 class="fs-15 mb-0">{{ Carbon::parse($item->end_time)->format('h:i A') }}</h5>
</div>
</div>
<div class="col-lg-2 col-sm-4">
<div>
<p class="text-uppercase fw-medium mb-2">Type:</p>
<span class="fs-15 badge bg-primary mb-0">{{ $item->meeting_with }}</span>
</div>
</div>
<div class="col-lg-2 col-sm-4">
<div>
<p class="text-uppercase fw-medium mb-2">Client:</p>
<h5 class="fs-15 mb-0">{{ @$item->client?->client_name }}</h5>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div class="card card-body">
<div class="text-muted">
<h6 class="fw-semibold text-uppercase mb-3">Description</h6>
{!! Str::limit($item->description, 666) !!}
@if (strlen($item->description) > 666)
<div id="description-full" style="display: none;">
{!! $item->description !!}
</div>
<a href="javascript:void(0);" id="see-more-btn" class="text-primary">See More</a>
<a href="javascript:void(0);" id="see-less-btn" class="text-primary"
style="display: none;">See
Less</a>
@endif
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Meeting Minute List</h5>
@foreach ($minutes as $minute)
<div class="simplebar-scrollable-y py-3" data-simplebar style="max-height: 400px;">
<div class="acitivity-timeline">
<div class="acitivity-item d-flex py-2">
<div class="avatar-xs acitivity-avatar flex-shrink-0">
<div class="avatar-title bg-primary-subtle text-primary rounded-circle">
{{ substr($minute->agenda, 0, 1) }}
</div>
</div>
<div class="flex-grow-1 ms-3">
<h6 class="mb-1">{{ $minute->agenda }}</h6>
<p class="text-muted mb-0">{!! $minute->description !!}</p>
</div>
<div class="d-flex flex-column ms-3 flex-shrink-0">
<div class="avatar-group flex-nowrap">
@isset($minute->assignedUser)
@foreach ($minute->assignedUser as $assignedId)
<div class="avatar-group-item">
<a href="javascript: void(0);" class="d-inline-block"
data-bs-toggle="tooltip" data-bs-trigger="hover"
data-bs-placement="top" title="{{ $assignedId->full_name }}">
<img src="{{ asset($assignedId->profile_pic) }}" alt=""
class="rounded-circle avatar-xxs">
</a>
</div>
@endforeach
@endisset
</div>
<small class="text-primary mb-2">{{ $minute->created_at?->format('d M, Y') }}</small>
</div>
</div>
</div>
</div>
@endforeach
</div>
<!--end card-body-->
</div>
<div class="card card-body">
<h6 class="fw-semibold text-uppercase mb-3">Meeting Minute</h6>
{{ html()->form('POST')->route('meeting.storeSubTask')->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
{{ html()->hidden('meeting_id', $item->id) }}
<div class="row gy-1">
<div class="col-md-12">
{{ html()->label('Agenda')->class('form-label') }}
{{ html()->textarea('agenda')->class('form-control')->placeholder('Enter Agenda')->required() }}
{{ html()->div('Please enter agenda')->class('invalid-feedback') }}
</div>
<div class="col-md-12">
{{ html()->label('Attendees')->class('form-label') }}
{{ html()->multiselect('attendees[ids][]', $employeeList)->class('form-control select2')->value($item->members['ids'] ?? null)->attributes(['multiple', 'id' => 'teams']) }}
{{ html()->div('Please enter attendees')->class('invalid-feedback') }}
</div>
<div class="col-md-12">
{{ html()->label('Description')->class('form-label') }}
{{ html()->textarea('description')->class('form-control ckeditor-classic')->placeholder('..') }}
</div>
</div>
<div class="mt-3 text-end">
<button type="submit" class="btn btn-success w-sm">Save</button>
</div>
{{ html()->form()->close() }}
</div>
</div>
<div class="col-md-3">
<div class="list-group mb-2">
<li class="list-group-item active">Action</li>
<a href="{{ route('meeting.sendmail', $item->id) }}" class="list-group-item list-group-item-action"
data-bs-toggle="modal" data-bs-target="#emailModal"><i
class="ri-mail-fill text-danger me-2 align-middle"></i>Send Email</a>
<a href="{{ route('meeting.edit', $item->id) }}" class="list-group-item list-group-item-action"><i
class="ri-pencil-fill text-primary me-2 align-middle"></i>Edit</a>
<a href="{{ route('meeting.index') }}" class="list-group-item list-group-item-action"><i
class="ri-user-add-fill text-secondary me-2 align-middle"></i>Back</a>
</div>
<div class="card">
<div class="card-body">
<div class="d-flex mb-3">
<h6 class="card-title flex-grow-1 mb-0">Team Members</h6>
</div>
<ul class="list-unstyled vstack mb-0 gap-3">
@foreach ($item->assignedUser as $assignedUser)
<li>
<div class="d-flex align-items-center">
<div class="flex-shrink-0">
<img src="{{ $assignedUser->profile_pic }}" alt=""
class="avatar-xs rounded-circle material-shadow">
</div>
<div class="flex-grow-1 ms-2">
<h6 class="mb-1"><a href="#">{{ $assignedUser->full_name }}</a>
</h6>
<p class="text-muted mb-0">{{ $assignedUser->email }}</p>
</div>
</div>
</li>
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
<script>
$(document).ready(function() {
$('#see-less-btn').hide();
$('#see-more-btn').on('click', function() {
$('#description-preview').hide();
$('#description-full').show();
$(this).hide();
$('#see-less-btn').show();
});
$('#see-less-btn').on('click', function() {
$('#description-full').hide();
$('#description-preview').show();
$(this).hide();
$('#see-more-btn').show();
});
$('#send-email-btn').on('click', function(e) {
e.preventDefault();
const $btn = $(this);
const url = $btn.attr('href');
$btn.prop('disabled', true).text('Sending mail...');
$.ajax({
url: url,
method: 'GET',
success: function(response) {
alert(response.message || 'Email sent successfully!');
},
error: function(xhr, status, error) {
const errorMsg = xhr.responseJSON?.error ||
'Failed to send email. Please try again.';
alert(errorMsg);
},
complete: function() {
$btn.prop('disabled', false).text('Send Email');
}
});
});
});
</script>
@endpush