This commit is contained in:
mobin
2026-04-08 07:22:13 +00:00
parent 2adb741dac
commit a6b5f27343
30300 changed files with 134406 additions and 1504 deletions
+69 -33
View File
@@ -17,28 +17,29 @@
<title>سامانه حضور و غیاب</title>
{{--ساعت--}}
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/clockpicker/0.0.7/bootstrap-clockpicker.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clockpicker/0.0.7/bootstrap-clockpicker.min.js"></script>
{{--تاریخ--}}
<link rel="stylesheet" href="https://unpkg.com/persian-datepicker@1.2.0/dist/css/persian-datepicker.css">
<link rel="stylesheet" href="{{ asset('/packages/clockpicker/bootstrap-clockpicker.min.css') }}">
<script src="{{ asset('/packages/clockpicker/jquery.min.js')}}"></script>
<script src="{{ asset('/packages/clockpicker/bootstrap-clockpicker.min.js')}}"></script>
<script src="https://unpkg.com/persian-date@1.1.0/dist/persian-date.js"></script>
<script src="https://unpkg.com/persian-datepicker@1.2.0/dist/js/persian-datepicker.js"></script>
{{-- --}}{{--تاریخ--}}
<link rel="stylesheet" href="{{ asset('/packages/datepicker/persian-datepicker.css')}}">
<script src="{{ asset("/packages/datepicker/persian-date.js")}}"></script>
<script src="{{ asset('/packages/datepicker/persian-datepicker.js') }}"></script>
<link rel="manifest" href="manifest.json">
{{-- <link rel="manifest" href="manifest.json">--}}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@600&display=swap" rel="stylesheet">
{{-- font awesome--}}
<link href="{{url('fontawesome-pro-6.5.2/css/all.css')}}" rel="stylesheet"/>
{{-- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet"/>--}}
{{-- <link href="https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@600&display=swap" rel="stylesheet">--}}
<style>
/* Ignore CSS variable inspection */
:root {
/* @phpstorm-ignore */
--primary-color: #16c8ce;
--primary-color: {{ \App\Models\Setting::where('key','primary_color')->value('value') ?? '#16c8ce'}};
--text-color: #ffffff;
}
@@ -55,6 +56,10 @@
z-index: 99999 !important;
direction: ltr !important;
/* چپ به راست */
background-color: #c8c8c8 !important;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}
.hidden-row {
@@ -93,7 +98,7 @@
width: 16px;
border-radius: 50%;
right: 0;
background-color: #16c8ce;
background-color: {{ \App\Models\Setting::where('key','primary_color')->value('value')}};
}
.title::before {
@@ -172,7 +177,7 @@
.submit {
border: none;
outline: none;
background-color: #16c8ce;
background-color: {{ \App\Models\Setting::where('key','primary_color')->value('value')}};
padding: 10px;
border-radius: 10px;
color: #fff;
@@ -264,6 +269,21 @@
.btn {
display: flex !important;
justify-content: center !important;
width: 100%;
}
.btn-sm {
display: flex !important;
justify-content: center !important;
}
@@ -272,6 +292,7 @@
</head>
<body>
@if (session('message'))
<center>
<div id="error-box"
@@ -285,15 +306,23 @@
<div style="max-width: 420px; width: 100%; ">
@if(url()->current() == url('/tasks'))
<div class="flex mr-6 object-right-bottom bottom-20 fixed z-10 w-14 ">
<a class="bg-[var(--primary-color)] rounded-full size-14 flex justify-center items-center "
href="/create_task">
<i class=" fa-solid fa-plus " style="color: white"></i>
</a>
</div>
@endif
@if(url()->current() != url('/tasks'))
<div class="flex mr-6 object-right-bottom bottom-20 fixed z-10 ">
<a class="bg-cyan-500 rounded-full size-14 flex justify-center items-center "
<div class="flex mr-6 object-right-bottom bottom-20 fixed z-10 w-14 ">
<a class="bg-[var(--primary-color)] rounded-full size-14 flex justify-center items-center "
href="/tasks">
<i class=" fa-solid fa-list-check " style="color: white"></i>
</a>
</div>
@endif
<div class="header bg-cyan-500"
<div class="header bg-[var(--primary-color)]"
style="position: fixed;padding: 6px; top: 0;max-width: 420px; width: 100%; z-index: 11;
/*background-color: #16c8ce;*/
font-size: 24px;font-weight: 600; color: #FFFFFF">
@@ -330,9 +359,10 @@
{{-- @if(isset($attendance_recorder) and $attendance_recorder == 1 or true)--}}
{{-- @else--}}
{{-- footer--}}
<div class="fixed bottom-0 max-w-[420px] w-full z-20">
<form id="actionForm" method="POST"
class="flex justify-around gap-4 items-center px-4 py-1 bg-cyan-500 text-[25px]"
class="flex justify-around gap-4 items-center px-4 py-1 bg-[var(--primary-color)] text-[25px]"
style="padding: 15px 0 10px 0">
@csrf
@if(isset($_COOKIE['token_0']) || isset($_COOKIE['token_1']) || isset($_COOKIE['token_2']))
@@ -340,30 +370,36 @@
class="fa-solid fa-arrow-up text-white"></i></button>
@endif
{{-- attendances list--}}
@if(isset($_COOKIE['token-0']))
<button type="button" onclick="submitForm('/back')"><i
class="fa-solid fa-backward-step text-white"></i>
</button>
@endif
{{-- BACK BOTTUN--}}
{{-- @if(isset($_COOKIE['token-0']))--}}
{{-- <button type="button" onclick="submitForm('/back')"><i--}}
{{-- class="fa-solid fa-backward-step text-white"></i>--}}
{{-- </button>--}}
{{-- @endif--}}
@if(isset($_COOKIE['user_identity']))
<button type="button" onclick="submitForm('{{route('attendance.show')}}','')"><i
class="fa-solid fa-clipboard-user text-white"></i></button>
<button type="button" onclick="submitForm('{{route('attendance.show')}}','')">
<i class="fa-solid fa-clipboard-user text-white"></i>
</button>
@endif
<button type="button" onclick="submitForm('/', 'GET')"><i
class="fa-solid fa-house text-white"></i></button>
<button type="button" onclick="submitForm('/', 'GET')">
<i class="fa-solid fa-house text-white"></i>
</button>
@if(!request()->is("admin") && (isset($_COOKIE['ad']) && $_COOKIE['ad']==1))
<button type="button" onclick="submitForm('{{route('admin.dashboard')}}', 'GET')"><i
class="fa-solid fa-users text-white"></i></button>
<button type="button" onclick="submitForm('{{route('admin.dashboard')}}', 'GET')">
<i class="fa-solid fa-users text-white"></i>
</button>
@elseif(request()->is("admin") && (isset($_COOKIE['ad']) && $_COOKIE['ad']==1))
<button type="button" onclick="submitForm('/', 'GET')"><i
class="fa-solid fa-users text-white"></i></button>
<button type="button" onclick="submitForm('/', 'GET')">
<i class="fa-solid fa-users text-white"></i>
</button>
@endif
@if(isset($_COOKIE['user_identity']))
<button type="button" onclick="submitForm('{{route('user.profile')}}', 'GET')"><i
class="fa-solid fa-user text-white"></i></button>
<button type="button" onclick="submitForm('{{route('user.profile')}}', 'GET')">
<i class="fa-solid fa-user text-white"></i>
</button>
@endif
</form>
</div>