first commit

This commit is contained in:
Sampanna Rimal
2024-08-27 17:48:06 +05:45
commit 53c0140f58
10839 changed files with 1125847 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<div class="navbar-brand-box horizontal-logo">
<a href="{{ route('home') }}" class="logo logo-dark">
<span class="logo-sm">
<img src="{{ asset('assets/images/logo-sm.png') }}" alt="" height="22">
</span>
<span class="logo-lg">
<img src="{{ asset('assets/images/logo-dark.png') }}" alt="" height="17">
</span>
</a>
<a href="{{ route('home') }}" class="logo logo-light">
<span class="logo-sm">
<img src="{{ asset('assets/images/logo-sm.png') }}" alt="" height="22">
</span>
<span class="logo-lg">
<img src="{{ asset('assets/images/logo-light.png') }}" alt="" height="17">
</span>
</a>
</div>

View File

@@ -0,0 +1,7 @@
@props(['status'])
@if ($status)
<div {{ $attributes->merge(['class' => 'font-medium text-sm text-green-600']) }}>
{{ $status }}
</div>
@endif

View File

@@ -0,0 +1,83 @@
@props(['isClockIn'])
<div class="modal fade" id="clockInOutForm" tabindex="-1" aria-labelledby="clockInOutFormLabel" aria-modal="true">
<div class="modal-dialog">
<form action="{{ route('attendance.clockInOut') }}" method="POST">
@csrf
<div class="modal-content">
<div class="modal-header mb-3">
<h5 class="modal-title" id="clockInOutFormLabel">{{ $isClockIn ? 'Clock Out' : 'Clock In' }} </h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="border border-dashed"></div>
<div class="modal-body mb-3">
<div class="row g-4">
<div class="col-lg-6">
<div class="d-flex align-items-center">
<div class="me-2">
<i class="feather" data-feather="clock"></i>
</div>
<div class="fs-5">
{{ now()->format('d-m-Y h:i a') }}
</div>
</div>
</div><!--end col-->
<div class="col-lg-6">
<div class="float-end">
<span class="badge badge-pill bg-info p-1">General Shift</span>
</div>
</div><!--end col-->
{{-- <div class="col-lg-12">
<label for="genderInput" class="form-label">Gender</label>
<div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1">
<label class="form-check-label" for="inlineRadio1">Male</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
<label class="form-check-label" for="inlineRadio2">Female</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3">
<label class="form-check-label" for="inlineRadio3">Others</label>
</div>
</div>
</div><!--end col--> --}}
<div class="col-lg-6">
<div>
<label for="location" class="form-label">Location</label>
<input type="text" class="form-control" id="location" value="Kathmandu/Nepal" disabled>
</div>
</div><!--end col-->
@if (!$isClockIn)
<div class="col-lg-6">
{{ html()->label('Working From')->class('form-label') }}
{{ html()->select('work_from_type', ['home' => 'Home', 'office' => 'Office', 'other' => 'Other'])->class('form-control')->placeholder('Working from?')->attribute('required') }}
</div><!--end col-->
<input type="hidden" name="type" value="clockin">
@else
<input type="hidden" name="type" value="clockout">
@endif
</div><!--end row-->
</div>
<div class="border border-dashed"></div>
<div class="modal-footer mt-3">
<div class="hstack justify-content-end gap-2">
<button type="button" class="btn btn-light btn-sm" data-bs-dismiss="modal">Cancel</button>
<button type="submit"
class="btn {{ $isClockIn ? 'btn-danger' : 'btn-primary' }} btn-sm">{{ $isClockIn ? 'Clock Out' : 'Clock In' }}</button>
</div>
</div><!--end col-->
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,12 @@
@push('css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/dataTables.bootstrap5.min.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.bootstrap.min.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.2.2/css/buttons.dataTables.min.css">
@endpush
@push('js')
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/dataTables.bootstrap5.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.9/js/dataTables.responsive.min.js"></script>
<script src="{{asset('assets/js/pages/datatables.init.js')}}"></script>
@endpush

View File

@@ -0,0 +1,7 @@
@props(['editable' => false, 'label' => 'Add', 'href' => '#'])
<div class="text-end">
{{ html()->a($href = $href, $text = 'Cancel')->class('btn btn-light') }}
{{ html()->button($editable ? 'Update' : $label, 'submit')->class('btn btn-success') }}
</div>