Stop tracking resourcesDemo folder
This commit is contained in:
@@ -1 +0,0 @@
|
||||
import './bootstrap';
|
||||
Vendored
-35
@@ -1,35 +0,0 @@
|
||||
import _ from 'lodash';
|
||||
window._ = _;
|
||||
|
||||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
import axios from 'axios';
|
||||
window.axios = axios;
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// import Pusher from 'pusher-js';
|
||||
// window.Pusher = Pusher;
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: import.meta.env.VITE_PUSHER_APP_KEY,
|
||||
// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1',
|
||||
// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
|
||||
// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
|
||||
// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
|
||||
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
|
||||
// enabledTransports: ['ws', 'wss'],
|
||||
// });
|
||||
@@ -1,300 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<script src="{{url('/src/tailwindcss.js')}}"></script>
|
||||
<title>جشن</title>
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<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: #EB192B;
|
||||
--text-color: #ffffff;
|
||||
|
||||
}
|
||||
.form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
max-width: 350px;
|
||||
background-color: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.title {
|
||||
padding-right: 28px;
|
||||
font-size: 28px;
|
||||
color: #424e54;
|
||||
font-weight: 600;
|
||||
letter-spacing: -1px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 30px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.title::before, .title::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
border-radius: 50%;
|
||||
right: 0;
|
||||
background-color: #EB192B;
|
||||
}
|
||||
|
||||
.title::before {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.title::after {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
animation: pulse 1s linear infinite;
|
||||
}
|
||||
|
||||
.message, .signin {
|
||||
color: rgba(88, 87, 87, 0.822);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.signin {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.signin a {
|
||||
color: royalblue;
|
||||
}
|
||||
|
||||
.signin a:hover {
|
||||
text-decoration: underline royalblue;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.form label {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.form label .input {
|
||||
width: 100%;
|
||||
padding: 10px 10px 14px 10px;
|
||||
outline: 0;
|
||||
border: 1px solid rgba(105, 105, 105, 0.397);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.form label .input + span {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
color: grey;
|
||||
font-size: 0.9em;
|
||||
cursor: text;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
.form label .input:placeholder-shown + span {
|
||||
top: 15px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.form label .input:focus + span, .form label .input:valid + span {
|
||||
left: 10px;
|
||||
top: 30px;
|
||||
font-size: 0.7em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.form label .input:valid + span {
|
||||
color: green;
|
||||
}
|
||||
|
||||
.submit {
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: #EB192B;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
transform: .3s ease;
|
||||
}
|
||||
|
||||
.submit:hover {
|
||||
background-color: rgb(255, 0, 0);
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
from {
|
||||
transform: scale(0.9);
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
transform: scale(1.8);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'MyCustomFont';
|
||||
src: url('{{url('/src/fonts/woff/iranyekanwebregularfanum.woff')}}') format('woff2'), url('{{url('/src/fonts/woff/iranyekanwebregularfanum.woff')}}') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: "MyCustomFont", cursive;
|
||||
letter-spacing: 0 !important;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #e1e1e1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
.header {
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@yield('style')
|
||||
</head>
|
||||
<body>
|
||||
@if (session('error'))
|
||||
<div id="error-box"
|
||||
class="bg-red-500 text-white p-4 rounded shadow-md fixed top-5 left-1/2 transform -translate-x-1/2 transition-opacity duration-1000 ease-in-out opacity-100"
|
||||
style="z-index: 100;">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@if (session('error'))
|
||||
<div id="error-box"
|
||||
class="bg-red-500 text-white p-4 rounded shadow-md fixed top-5 left-1/2 transform -translate-x-1/2 transition-opacity duration-1000 ease-in-out opacity-100"
|
||||
style="z-index: 100;">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div style="max-width: 420px; width: 100%;">
|
||||
<div class="header"
|
||||
style="position: fixed;padding: 6px; top: 0;max-width: 420px; width: 100%; z-index: 11; background-color: #EB192B;font-size: 24px;font-weight: 600; color: #FFFFFF">
|
||||
<div style="padding: 5px 30px 5px 30px; display: flex;justify-content:center">
|
||||
<div class="headerItems">
|
||||
<label>پنل </label>
|
||||
<label>{{$user->name}}</label>
|
||||
@if(isset($_COOKIE['token_0']) || isset($_COOKIE['token_1']) || isset($_COOKIE['token_2']))
|
||||
<label style="font-size: 12px">({{ $user->type == 0 ? 'ادمین' : ($user->type == 1 ? 'میزبان' :($user->type == 2 ? 'دعوت کننده' : 'مهمان')) }}
|
||||
)</label>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-bottom: 48px;"></div>
|
||||
|
||||
@if(isset($attendance_recorder) and $attendance_recorder==1)
|
||||
|
||||
@else
|
||||
<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-[#EB192B] text-[25px]" style="padding: 15px 0 10px 0">
|
||||
@csrf
|
||||
@if(isset($_COOKIE['token_0']) || isset($_COOKIE['token_1']) || isset($_COOKIE['token_2']))
|
||||
<button type="button" onclick="submitForm('up')"><i class="fa-solid fa-arrow-up text-white"></i></button>
|
||||
@endif
|
||||
<button type="button" onclick="submitForm('logout')"><i class="fa-solid fa-right-from-bracket text-white"></i></button>
|
||||
<button type="button" onclick="submitForm('', 'GET')"><i class="fa-solid fa-house text-white"></i></button>
|
||||
|
||||
<button type="button" onclick="submitForm('edit')"><i class="fa-solid fa-user text-white"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<script>
|
||||
function submitForm(action, method = 'POST') {
|
||||
const form = document.getElementById('actionForm');
|
||||
form.action = `{{ url('/') }}/${action}`;
|
||||
form.method = method; // Sets method dynamically
|
||||
if (method === 'GET') {
|
||||
window.location.href = form.action; // Redirect for GET request
|
||||
} else {
|
||||
form.submit(); // Submit for POST request
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@yield('content')
|
||||
<div style="margin-top: 88px;"></div>
|
||||
<script>
|
||||
function openModal(title, id) {
|
||||
// Set the modal content
|
||||
const modalTitle = document.getElementById('modal-title')
|
||||
const modalBody = document.getElementById('modal-body')
|
||||
modalTitle.innerText = title
|
||||
|
||||
// Set the correct link for Panel Access based on the item's ID
|
||||
const panelLink = document.getElementById('panel-access-link')
|
||||
panelLink.href = `/go_down/${id}`
|
||||
|
||||
// Show the modal
|
||||
document.getElementById('modal-container').classList.remove('hidden')
|
||||
}
|
||||
|
||||
// Close modal function
|
||||
function closeModal() {
|
||||
document.getElementById('modal-container').classList.add('hidden')
|
||||
}
|
||||
|
||||
// Close modal when clicking outside the modal content
|
||||
document.getElementById('modal-container').addEventListener('click', (e) => {
|
||||
if (e.target === document.getElementById('modal-container')) {
|
||||
closeModal()
|
||||
}
|
||||
})
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const errorBox = document.getElementById('error-box')
|
||||
if (errorBox) {
|
||||
// Fade out the error box after 3 seconds
|
||||
setTimeout(() => {
|
||||
errorBox.classList.add('opacity-0') // Add fade-out class
|
||||
// Remove the error box after the fade-out transition ends
|
||||
errorBox.addEventListener('transitionend', () => {
|
||||
errorBox.remove()
|
||||
})
|
||||
}, 3000) // Duration before starting fade out
|
||||
}
|
||||
})
|
||||
</script>
|
||||
@yield('script')
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<script src="{{url('/src/tailwindcss.js')}}"></script>
|
||||
<title>جشن</title>
|
||||
<link rel="manifest" href="telephone/manifest.json">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<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>
|
||||
|
||||
.form { display: flex; flex-direction: column; gap: 10px; max-width: 350px; background-color: #fff; padding: 20px; border-radius: 20px; position: relative; }
|
||||
.title {
|
||||
padding-right: 28px;
|
||||
font-size: 28px;
|
||||
color: #EB192B;
|
||||
font-weight: 600;
|
||||
letter-spacing: -1px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 30px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.title::before, .title::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
border-radius: 50%;
|
||||
right: 0;
|
||||
background-color: #EB192B;
|
||||
} .title::before { width: 18px; height: 18px; }
|
||||
.title::after { width: 18px; height: 18px; animation: pulse 1s linear infinite; }
|
||||
.message, .signin { color: rgba(88, 87, 87, 0.822); font-size: 14px; }
|
||||
.signin { text-align: center; }
|
||||
.signin a { color: #EB192B; }
|
||||
.signin a:hover { text-decoration: underline #EB192B; }
|
||||
.flex { display: flex; width: 100%; gap: 6px; }
|
||||
.form label { position: relative; }
|
||||
.form label .input { width: 100%; padding: 10px 10px 20px 10px; outline: 0; border: 1px solid rgba(105, 105, 105, 0.397); border-radius: 10px; }
|
||||
.form label .input + span { position: absolute; right: 10px; top: 15px; color: grey; font-size: 0.9em; cursor: text; transition: 0.3s ease; }
|
||||
.form label .input:placeholder-shown + span { top: 15px; font-size: 0.9em; }
|
||||
.form label .input:focus + span, .form label .input:valid + span { left: 10px; top: 30px; font-size: 0.7em; font-weight: 600; }
|
||||
.form label .input:valid + span { color: green; }
|
||||
.submit { border: none; outline: none; background-color: #EB192B; padding: 10px; border-radius: 10px; color: #fff; font-size: 16px; transform: .3s ease; }
|
||||
.submit:hover { background-color: rgb(194, 56, 56); }
|
||||
@keyframes pulse { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
|
||||
@font-face { font-family: 'MyCustomFont'; src: url('{{url('/src/fonts/woff/iranyekanwebregularfanum.woff')}}') format('woff2'), url('{{url('/src/fonts/woff/iranyekanwebregularfanum.woff')}}') format('woff'); font-weight: normal; font-style: normal; }
|
||||
* { font-family: "MyCustomFont", cursive; letter-spacing: 0 !important; }
|
||||
body { background-color: #cccccc; display: flex; justify-content: center; align-items: center; margin: 0; }
|
||||
.container { max-width: 420px; width: 100%; }
|
||||
.header { max-width: 420px; width: 100%; }
|
||||
</style>
|
||||
</head>
|
||||
<body >
|
||||
@if (session('error'))
|
||||
<div id="error-box" class="bg-red-500 text-white p-4 rounded shadow-md fixed top-5 left-1/2 transform -translate-x-1/2 transition-opacity duration-1000 ease-in-out opacity-100" style="z-index: 100;">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<div class="container" style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh;margin-top: 10%">
|
||||
<form class="form" action="{{url('login')}}" method="post" style="text-align: left">@csrf
|
||||
<img style="margin-right: 33%" height="95"width="95" src="{{url('/Untitled-3.png')}}">
|
||||
<p class="title text-center">ورود </p>
|
||||
<p class="message text-right">سلام درصورتی که رمز برای شما پیامک نشده به ادمین خبر بدین</p>
|
||||
<label>
|
||||
<input required="" placeholder="" name="name" type="text" class="input" @if(isset($_GET['username'])) value="{{$_GET['username']}}" @endif>
|
||||
<span>موبایل</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="password" type="password" class="input" @if(isset($_GET['password'])) value="{{$_GET['password']}}" @endif>
|
||||
<span>رمز</span>
|
||||
</label>
|
||||
|
||||
<button class="submit" style="padding: 14px" >ورود</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div style="margin-top: 100px;"></div>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const errorBox = document.getElementById('error-box');
|
||||
if (errorBox) {
|
||||
// Fade out the error box after 3 seconds
|
||||
setTimeout(() => {
|
||||
errorBox.classList.add('opacity-0'); // Add fade-out class
|
||||
// Remove the error box after the fade-out transition ends
|
||||
errorBox.addEventListener('transitionend', () => {
|
||||
errorBox.remove();
|
||||
});
|
||||
}, 3000); // Duration before starting fade out
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,224 +0,0 @@
|
||||
{{--<pre>--}}
|
||||
{{-- <?php--}}
|
||||
{{-- print_r($user);--}}
|
||||
{{-- dd($user->telephonnote);--}}
|
||||
|
||||
|
||||
{{-- ?>--}}
|
||||
{{--</pre>--}}
|
||||
|
||||
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Document</title>
|
||||
<link rel="manifest" href="telephone/manifest.json">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
.singup {
|
||||
color: #000;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
font-size: x-large;
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
.card {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 350px;
|
||||
width: 300px;
|
||||
flex-direction: column;
|
||||
gap: 35px;
|
||||
border-radius: 15px;
|
||||
background: #e3e3e3;
|
||||
box-shadow: 16px 16px 32px #c8c8c8,
|
||||
-16px -16px 32px #fefefe;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.inputBox,
|
||||
.inputBox1 {
|
||||
position: relative;
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.inputBox input,
|
||||
.inputBox1 input {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
outline: none;
|
||||
border: none;
|
||||
color: #000;
|
||||
font-size: 1em;
|
||||
background: transparent;
|
||||
border-left: 2px solid #000;
|
||||
border-bottom: 2px solid #000;
|
||||
transition: 0.1s;
|
||||
border-bottom-left-radius: 8px;
|
||||
}
|
||||
|
||||
.inputBox span,
|
||||
.inputBox1 span {
|
||||
margin-top: 5px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform: translateY(-4px);
|
||||
margin-left: 10px;
|
||||
padding: 10px;
|
||||
pointer-events: none;
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
text-transform: uppercase;
|
||||
transition: 0.5s;
|
||||
letter-spacing: 3px;
|
||||
border-radius: 8px;
|
||||
|
||||
}
|
||||
|
||||
.inputBox input:valid~span,
|
||||
.inputBox input:focus~span {
|
||||
transform: translateX(153px) translateY(-22px);
|
||||
font-size: 0.8em;
|
||||
padding: 5px 10px;
|
||||
background: #000;
|
||||
letter-spacing: 0.2em;
|
||||
color: #fff;
|
||||
border: 2px;
|
||||
}
|
||||
|
||||
.inputBox1 input:valid~span,
|
||||
.inputBox1 input:focus~span {
|
||||
transform: translateX(196px) translateY(-22px);
|
||||
font-size: 0.8em;
|
||||
padding: 5px 10px;
|
||||
background: #000;
|
||||
letter-spacing: 0.2em;
|
||||
color: #fff;
|
||||
border: 2px;
|
||||
}
|
||||
|
||||
.inputBox input:valid,
|
||||
.inputBox input:focus,
|
||||
.inputBox1 input:valid,
|
||||
.inputBox1 input:focus {
|
||||
border: 2px solid #000;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.enter {
|
||||
height: 45px;
|
||||
width: 100px;
|
||||
border-radius: 5px;
|
||||
border: 2px solid #000;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
transition: 0.5s;
|
||||
text-transform: uppercase;
|
||||
font-size: 10px;
|
||||
letter-spacing: 2px;
|
||||
margin-bottom: 3em;
|
||||
}
|
||||
|
||||
.enter:hover {
|
||||
background-color: rgb(0, 0, 0);
|
||||
color: white;
|
||||
}
|
||||
.textfa{
|
||||
font-family: 'Baloo Bhaijaan 2', cursive;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0 !important;
|
||||
}
|
||||
.callbutton {
|
||||
width: 9em;
|
||||
height: 3em;
|
||||
border-radius: 30em;
|
||||
font-size: 15px;
|
||||
font-family: inherit;
|
||||
border: none;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
min-width: 300px;
|
||||
background-color: #e3e3e3;
|
||||
box-shadow: 6px 6px 12px #c5c5c5,
|
||||
-6px -6px 12px #ffffff;
|
||||
}
|
||||
|
||||
.callbutton::before {
|
||||
content: '';
|
||||
width: 0;
|
||||
height: 3em;
|
||||
border-radius: 30em;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);
|
||||
transition: .5s ease;
|
||||
display: block;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.callbutton:hover::before {
|
||||
width: 300px;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="background-color: #e8e8e8">
|
||||
{{--<header>--}}
|
||||
|
||||
{{-- <form action="">--}}
|
||||
{{-- <input class="callbutton" name="q" style="font-family: 'Baloo Bhaijaan 2', cursive;padding: 5px 20px;">--}}
|
||||
{{-- <input class="callbutton" type="submit" value="جستجو" style="font-family: 'Baloo Bhaijaan 2', cursive;padding: 5px 20px;">--}}
|
||||
|
||||
|
||||
{{-- </form>--}}
|
||||
|
||||
|
||||
{{--</header>--}}
|
||||
|
||||
|
||||
|
||||
<div class="container" style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh;">
|
||||
<form action="telephonnotesave" method="post">@csrf
|
||||
<div class="card" style="padding-right: 20px">
|
||||
<a class="singup textfa">اضافه کردن شماره</a>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="name" required="required" style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">نام</span>
|
||||
</div>
|
||||
|
||||
<div class="inputBox">
|
||||
<input type="number" name="number" required="required" style="font-family: 'Baloo Bhaijaan 2', cursive; ">
|
||||
<span class="textfa">شماره تلفن</span>
|
||||
</div>
|
||||
|
||||
<button class="enter" type="submit" style="font-weight: 590">Enter</button>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="container" style="min-height: 8vh;display: flex; align-items: center;justify-content: center;">
|
||||
<a href="tel:123"> <button class="callbutton" style="font-family: 'Baloo Bhaijaan 2', cursive;">
|
||||
123
|
||||
</button></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
{{-- @php(dd($user->number))--}}
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh; ">
|
||||
<form class="form" action="{{ isset($User) ? url('editHim') : url('editHim') }}" method="post" style="text-align: left">@csrf
|
||||
<p class="title">فرم ویرایش </p>
|
||||
<p class="message text-right">در اینجا جشن های خود را اضافه کنید وتعداد را وارد کنید </p>
|
||||
<label>
|
||||
<input required="" placeholder="" name="name" type="text" class="input" value="@if(isset($User)){{$User->name}}@else{{$user->name}}@endif">
|
||||
<span>نام</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="number" type="number" class="input" value="@if(isset($User)){{$User->number}}@else{{$user->number}}@endif">
|
||||
<span>موبایل</span>
|
||||
</label>
|
||||
@if(isset($User))
|
||||
@if($User->from)
|
||||
<div style="text-align: center">
|
||||
<input type="checkbox" id="setAsValid" name="setAsValid" value="true">
|
||||
<label for="setAsValid">تایید کاربر</label>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
<input type="hidden" name="id" value="@if(isset($User)){{$User->id}}@else{{$user->id}} @endif">
|
||||
<button class="submit">ویرایش</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
<div>
|
||||
@if($success != "false")
|
||||
<h2 style="color: green">
|
||||
کاربر
|
||||
{{$success}}
|
||||
زخیره شد.
|
||||
🎉🎉
|
||||
</h2>
|
||||
|
||||
@endif
|
||||
<form method="post" wire:submit="save" {{--action="saveuser"--}}>
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<label>کد ملی</label>
|
||||
<input wire:model="name" name="name" class="form-control" type="number" placeholder="لطفا فرم را پر کنید" required>
|
||||
<hr>
|
||||
<label> حقوق/شهریه (تومان)</label>
|
||||
<input wire:model="payment" name="payment" class="form-control" type="number" placeholder="لطفا فرم را پر کنید">
|
||||
<hr>
|
||||
<label>نام و نام خانوادگی</label>
|
||||
<input wire:model="student" name="student" class="form-control" type="text" placeholder="لطفا فرم را پر کنید">
|
||||
<hr>
|
||||
|
||||
<label>شماره تماس</label>
|
||||
<input wire:model="phone" name="phone" class="form-control" type="number" placeholder="لطفا فرم را پر کنید">
|
||||
<hr>
|
||||
<label>رمز ورود</label>
|
||||
<input wire:model="password" name="password" class="form-control" type="text" placeholder="لطفا فرم را پر کنید">
|
||||
<hr>
|
||||
<select wire:model="classid" name="classid[]" multiple>
|
||||
@foreach($classes as $class )
|
||||
<option value="{{$class->id}}">{{$class->name}}</option>
|
||||
@endforeach
|
||||
|
||||
</select>
|
||||
|
||||
<button>save</button>
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@@ -1,76 +0,0 @@
|
||||
<div>
|
||||
|
||||
<tr>
|
||||
<td>{{$thisuser->name}}</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#editEnrollment{{$thisuser->id}}">
|
||||
{{$thisuser->id}}
|
||||
</button>
|
||||
</td>
|
||||
<td>{{ mSh($thisuser->updated_at)}}</td>
|
||||
|
||||
<td>
|
||||
<!-- Button modal edit-->
|
||||
|
||||
<button class="btn btn-success" onmouseenter="document.getElementById('sidebarForm').action='startclass/{{$thisuser->id}}'" onmousedown="document.getElementById('sidebarForm').submit();">شروع کلاس</button>
|
||||
<button class="btn btn-warning" onmouseenter="document.getElementById('sidebarForm').action='startclass/{{$thisuser->id}}'" onmousedown="document.getElementById('sidebarForm').submit();">ویرایش</button>
|
||||
<button class="btn btn-danger" onmouseenter="document.getElementById('sidebarForm').action='startclass/{{$thisuser->id}}'" onmousedown="document.getElementById('sidebarForm').submit();">حذف</button>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Modal edit-->
|
||||
<div class="modal fade" id="editEnrollment{{$thisuser->id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLongTitle">{{$thisuser->title}}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<form action="{{url('editUser')}}" method="post">@csrf
|
||||
<div class="modal-body" style="text-align: center" dir="rtl">
|
||||
<input type="hidden" name="id" value="{{$thisuser->id}}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col">نوع کاربری :</div>
|
||||
<div class="col">
|
||||
<select name="type" id="type{{$thisuser->id}}Select">
|
||||
<option value="user">ساده</option>
|
||||
<option value="client">دانشجو</option>
|
||||
<option value="admin">معلم</option>
|
||||
</select>
|
||||
<script>document.getElementById('type{{$thisuser->id}}Select').value ='{{$thisuser->type}}';</script>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col">کد ملی :</div>
|
||||
<div class="col">
|
||||
<input type="number" name="name" value="{{$thisuser->name}}">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col">موبایل دانشجو :</div>
|
||||
<div class="col">
|
||||
<input type="number" name="phone" value="{{$thisuser->phone}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal make class-->
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,62 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh; ">
|
||||
<form class="form" action="{{url('make/host')}}" method="post" style="text-align: left">@csrf
|
||||
<p class="title">ایجاد جشن </p>
|
||||
<p class="message text-right">در اینجا جشن های خود را اضافه کنید وتعداد را وارد کنید </p>
|
||||
<label>
|
||||
<input required="" placeholder="" name="name" type="text" class="input">
|
||||
<span>جشن</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="number" type="number" class="input">
|
||||
<span>موبایل</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="from" type="number" class="input">
|
||||
<span>تعداد</span>
|
||||
</label>
|
||||
<button class="submit">ایجاد</button>
|
||||
{{-- <p class="signin">Already have an acount ? <a href="#">Signin</a> </p>--}}
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="w-full flex justify-center">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white max-w-[350px]">
|
||||
<input type="text" id="searchInput" placeholder="جستجو..." class="p-2 w-full text-right focus:outline-none focus:none" style="padding: 14px;width:350px">
|
||||
<!-- Your Table Code Here -->
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class=" text-black sticky top-0 z-10" style="background: rgba(244,244,244,0.82);border-bottom: 1px solid;border-color: #e1e1e1 ">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider" style="color: #2c2c2c">نام</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider" style="color: #2c2c2c">شماره</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider" style="color: #2c2c2c">تعداد</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach($user->Users->reverse() as $item)
|
||||
<tr class="hover:bg-red-100 cursor-pointer" onclick="location.href='{{ url('go_down/' . $item->id) }}'">
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right" style="color: #000000 !important;font-weight:600 " >{{$item->name}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{$item->number}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap" >{{$item->from}}</td>
|
||||
|
||||
</tr>
|
||||
<tr class="spacer">
|
||||
</tr>
|
||||
@endforeach
|
||||
<!-- پیغام تایید و دکمهها -->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,277 +0,0 @@
|
||||
@extends('app')
|
||||
@section('style')
|
||||
|
||||
<style>
|
||||
#contacts {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 20px auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center; /* Center text inside */
|
||||
direction: rtl; /* Right-to-left text direction for Farsi */
|
||||
}
|
||||
|
||||
.form-container {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-container textarea {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.form-container button {
|
||||
margin-top: 10px;
|
||||
}</style>
|
||||
{{--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">--}}
|
||||
@endsection
|
||||
@section('content')
|
||||
{{-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>--}}
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="w-full flex justify-center" style="margin-top:70px">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white w-[350px] flex justify-center">
|
||||
<label style="" class="w-[250px]"> افراد حاضر{{$guestIn}}</label>
|
||||
<label> کل افراد {{$allUsers->count()}}</label>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<form action="{{url('inOrOut')}}" method="get">@csrf
|
||||
<div class="w-full flex justify-center" style="margin-top: 10px">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white max-w-[350px]">
|
||||
<div class="" style="display: flex">
|
||||
<input type="text" id="searchInput" placeholder="جستجو..."
|
||||
class="p-2 w-full text-right focus:outline-none focus:none"
|
||||
style="padding: 14px;width:350px">
|
||||
<button class="p-2 w-full text-right focus:outline-none focus:none "
|
||||
style="padding: 14px;background:var(--primary-color);color:var(--text-color); width:350px;text-align: center">
|
||||
ثبت حضور
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Your Table Code Here -->
|
||||
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class=" text-black sticky top-0 z-10"
|
||||
style="background: rgba(244,244,244,0.82);border-bottom: 1px solid;border-color: #e1e1e1 ">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">کد
|
||||
</th>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">نام
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">موبایل
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">معرف
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">زمان حضور
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach(($allUsers->sortBy('to')) as $item)
|
||||
<tr class="hover:bg-red-100 cursor-pointer"
|
||||
@if( $item->from ==10) style="background: #dddddd" @endif>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">
|
||||
<input type="checkbox" name="ids[]" class="user-checkbox" value="{{ $item->id }}"
|
||||
@if(!isset($attendance_recorder) || $attendance_recorder != 1) checked @endif>
|
||||
</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap">{{$item->to}}</td>
|
||||
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right"
|
||||
style="color: #000000 !important;font-weight:600 ">
|
||||
<div class="" style=" display: flex">
|
||||
{{$item->name}}
|
||||
<div style="font-size: 12px;font-weight: 500; transform: rotate(270deg);">
|
||||
{{ $item->gender == 'man' ? '(آقا)' : ($item->gender == 'boy' ? '(پسر)' : ($item->gender == 'women' ? '(خانم)' : $item->gender)) }}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{$item->number}}</td>
|
||||
|
||||
@if($item->type == 3)
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap">{{$item->user8D->name}}</td>
|
||||
@else
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap"></td>
|
||||
@endif
|
||||
@if( $item->from ==10)
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{ $item->updated_at->format('H:i') }}</td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
<!-- پیغام تایید و دکمهها -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<!-- Modals -->
|
||||
<div id="modal-container"
|
||||
class="fixed inset-0 z-50 hidden bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div id="modal-content" class="bg-white p-4 sm:p-6 rounded-lg shadow-lg max-w-sm w-full relative">
|
||||
<h2 id="modal-title" class="text-m sm:text-2xl font-semibold mb-4 text-center"
|
||||
style="font-size: 18px;font-weight: 500"></h2>
|
||||
<p id="modal-body" class="text-gray-700 mb-4 text-center"></p>
|
||||
<div class="flex flex-wrap justify-center gap-2">
|
||||
{{-- <form id="panel-access-link-edite" action="#" class=" text-white rounded p-2" title="Panel Access"--}}
|
||||
{{-- method="post">@csrf--}}
|
||||
{{-- <button class="bg-blue-500 text-white rounded p-2" title="Edit" style="width: 44px">--}}
|
||||
{{-- <i class="fas fa-edit text-white text-lg"></i>--}}
|
||||
{{-- </button>--}}
|
||||
{{-- </form>--}}
|
||||
{{-- <form id="panel-access-link-delete" action="#" class=" text-white rounded p-2" title="Panel Access"--}}
|
||||
{{-- method="post">@csrf--}}
|
||||
{{-- <button class="bg-red-500 text-white rounded p-2" title="Delete" style="width: 44px">--}}
|
||||
{{-- <i class="fas fa-trash text-white text-lg"></i>--}}
|
||||
{{-- </button>--}}
|
||||
{{-- </form>--}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('script')
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Get the search input and table rows
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
const tableRows = document.querySelectorAll('tr.hover\\:bg-red-100');
|
||||
|
||||
// Add event listener to the search input
|
||||
searchInput.addEventListener('keyup', function () {
|
||||
const filter = searchInput.value.toLowerCase();
|
||||
|
||||
// Loop through the rows to filter based on the input
|
||||
tableRows.forEach(row => {
|
||||
const cells = row.getElementsByTagName('td');
|
||||
let textContent = '';
|
||||
|
||||
// Combine text content of all cells in a row
|
||||
for (let cell of cells) {
|
||||
textContent += cell.textContent.toLowerCase();
|
||||
}
|
||||
|
||||
// Show or hide the row based on the filter match
|
||||
if (textContent.includes(filter)) {
|
||||
row.style.display = '';
|
||||
} else {
|
||||
row.style.display = 'none';
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function openModal(title, id) {
|
||||
document.getElementById('modal-title').innerText = title; // Set modal title
|
||||
// document.getElementById('panel-access-link-edite').action = `/edit/${id}`;
|
||||
// document.getElementById('panel-access-link-delete').action = `/delete/${id}`;
|
||||
document.getElementById('modal-container').classList.remove('hidden'); // Show modal
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById('modal-container').classList.add('hidden')
|
||||
}
|
||||
|
||||
document.getElementById('modal-container').addEventListener('click', (e) => {
|
||||
if (e.target === document.getElementById('modal-container')) {
|
||||
closeModal()
|
||||
}
|
||||
})
|
||||
|
||||
async function getContacts() {
|
||||
if ('contacts' in navigator && 'ContactsManager' in window) {
|
||||
const properties = ['name', 'tel'];
|
||||
const options = {multiple: true};
|
||||
|
||||
try {
|
||||
const contacts = await navigator.contacts.select(properties, options);
|
||||
displayContacts(contacts);
|
||||
} catch (error) {
|
||||
alert('دسترسی به مخاطبین رد شد یا امکانپذیر نیست.');
|
||||
console.error(error);
|
||||
}
|
||||
} else {
|
||||
alert('مرورگر شما از API مخاطبین پشتیبانی نمیکند.');
|
||||
}
|
||||
}
|
||||
|
||||
function displayContacts(contacts) {
|
||||
const contactsTextarea = document.getElementById('contacts');
|
||||
const formContainer = document.getElementById('formContainer');
|
||||
let contactsText = '';
|
||||
|
||||
contacts.forEach(contact => {
|
||||
// Normalize and deduplicate phone numbers
|
||||
const uniqueTels = normalizeAndDeduplicate(contact.tel);
|
||||
|
||||
// Store contact info in an object
|
||||
const contactInfo = {
|
||||
name: contact.name?.join(', ') || 'نامشخص',
|
||||
number: uniqueTels.join(', ') || 'نامشخص'
|
||||
};
|
||||
|
||||
contactsText += `${contactInfo.name}\n${contactInfo.number}\n\n`;
|
||||
});
|
||||
|
||||
// Set the text content of the textarea and show the form container
|
||||
contactsTextarea.value = contactsText;
|
||||
contactsTextarea.style.display = 'block'; // Ensure the textarea is displayed
|
||||
formContainer.style.display = 'block'; // Show the form container
|
||||
}
|
||||
|
||||
function normalizeAndDeduplicate(telArray) {
|
||||
if (!telArray) return [];
|
||||
const normalizedSet = new Set();
|
||||
|
||||
telArray.forEach(tel => {
|
||||
// Normalize the phone number by removing spaces and standardizing formats
|
||||
let normalizedTel = tel.replace(/\s+/g, '') // Remove spaces
|
||||
.replace(/^(?:\+98|0098|98)?0*/, '0'); // Ensure it starts with '0'
|
||||
normalizedSet.add(normalizedTel);
|
||||
});
|
||||
|
||||
return Array.from(normalizedSet);
|
||||
}
|
||||
|
||||
function confirmSubmit() {
|
||||
return confirm('آیا مطمئن هستید که میخواهید اطلاعات را ارسال کنید؟');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,217 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
|
||||
<div class="container" style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;margin: 90px 0 10px 0 ">
|
||||
<form class="form" action="{{url('make/host')}}" method="post" style="text-align: left">@csrf
|
||||
<p class="title text-center">ایجاد دعوت کنندگان </p>
|
||||
<p class="message text-right">با اضافه شدن هر کاربر دسترسی اضافه کردن میهمانان را دارد</p>
|
||||
<label>
|
||||
<input required="" placeholder="" name="name" type="text" class="input">
|
||||
<span> نام و نام خونوادگی</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="number" type="number" class="input">
|
||||
<span>موبایل</span>
|
||||
</label>
|
||||
<div class="flex">
|
||||
<label>
|
||||
<input required="" placeholder="" name="from" type="number" class="input">
|
||||
<span>از</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="to" type="number" class="input">
|
||||
<span>تا</span>
|
||||
</label>
|
||||
</div>
|
||||
<button class="submit">ایجاد</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="container" style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;">
|
||||
<div class="form" style="width:350px; margin-bottom: 20px; margin-top: 10px;">
|
||||
<form class="" action="{{url('list_page')}}" method="post" >@csrf
|
||||
<button class="submit" style="width:310px;">لیست کامل مراسم و ارسال پیامک</button>
|
||||
</form>
|
||||
<form class="" action="{{url('smsLogs')}}" method="post" >@csrf
|
||||
<button class="submit" style="width:310px;">لیست پیامک های ارسال شده سیستم</button>
|
||||
</form>
|
||||
<div class="" STYLE="display: flex; justify-content: center">
|
||||
<button id="copyButtonMan" class="submit" style="margin-left: 8px">لیست زنانه</button>
|
||||
<button id="copyButton" class="submit">لیست کلی</button>
|
||||
<button id="copyButtonWoman" class="submit" style="margin-right: 8px">لیست مردانه</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById('copyButton').addEventListener('click', () => {
|
||||
navigator.clipboard.writeText("https://jashn.alimontazer.ir/attendance-recorder/{{$user->id}}/{{$user->number}}")
|
||||
.then(() => alert('لینک لیست کلی کپی شد!'))
|
||||
.catch(err => console.error('خطا در کپی لینک:', err));
|
||||
navigator.vibrate([200]);
|
||||
});
|
||||
document.getElementById('copyButtonMan').addEventListener('click', () => {
|
||||
navigator.clipboard.writeText("https://jashn.alimontazer.ir/attendance-recorder/{{$user->id}}/{{$user->number}}?gender=womans")
|
||||
.then(() => alert('لینک لیست زنانه کپی شد!'))
|
||||
.catch(err => console.error('خطا در کپی لینک:', err));
|
||||
navigator.vibrate([200]);
|
||||
});
|
||||
document.getElementById('copyButtonWoman').addEventListener('click', () => {
|
||||
navigator.clipboard.writeText("https://jashn.alimontazer.ir/attendance-recorder/{{$user->id}}/{{$user->number}}?gender=mans")
|
||||
.then(() => alert('لینک لیست مردانه کپی شد!'))
|
||||
.catch(err => console.error('خطا در کپی لینک:', err));
|
||||
navigator.vibrate([200]);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<!-- Your Table Code Here -->
|
||||
<div class="w-full flex justify-center">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white max-w-[350px]">
|
||||
<input type="text" id="searchInput" placeholder="جستجو..." class="p-2 w-full text-right focus:outline-none focus:none" style="padding: 14px;width:350px">
|
||||
<!-- Your Table Code Here -->
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class=" text-black sticky top-0 z-10" style="background: rgba(244,244,244,0.82);border-bottom: 1px solid;border-color: #e1e1e1 ">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider" style="color: #2c2c2c">نام</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider" style="color: #2c2c2c">موبایل</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider" style="color: #2c2c2c">از</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider" style="color: #2c2c2c">تا</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach($user->Users->sortBy('from') as $item)
|
||||
<tr class="hover:bg-red-100 cursor-pointer" onclick="openModal('{{ $item->name }}', '{{ $item->id }}')">
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right" style="color: #000000 !important;font-weight:600 " >{{$item->name}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{$item->number}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap" >{{$item->from}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap" >{{$item->to}}</td>
|
||||
</tr>
|
||||
<tr class="spacer">
|
||||
</tr>
|
||||
@endforeach
|
||||
<!-- پیغام تایید و دکمهها -->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Modals -->
|
||||
<!-- Modals -->
|
||||
<div id="modal-container" class="fixed inset-0 z-50 hidden bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div id="modal-content" class="bg-white p-4 sm:p-6 rounded-lg shadow-lg max-w-sm w-full relative">
|
||||
<h2 id="modal-title" class="text-xl sm:text-2xl font-semibold mb-4 text-center"></h2>
|
||||
<p id="modal-body" class="text-gray-700 mb-4 text-center"></p>
|
||||
<div class="flex justify-center gap-2">
|
||||
<a id="panel-access-link" href="#" class="bg-green-500 text-white rounded p-2" title="Panel Access">
|
||||
ورودبه پنل کاربر
|
||||
</a>
|
||||
<button class="bg-yellow-500 text-white rounded p-2" title="Resend Password">
|
||||
ارسال دوباره رمز
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex justify-center gap-2">
|
||||
|
||||
|
||||
<form id="panel-access-link-edite" action="#" class=" text-white rounded p-2" title="Panel Access" method="post">@csrf
|
||||
<button class="bg-blue-500 text-white rounded p-2" title="Edit" style="width: 44px">
|
||||
<i class="fas fa-edit text-white text-lg"></i>
|
||||
</button>
|
||||
</form>
|
||||
<form id="panel-access-link-delete" action="#" class=" text-white rounded p-2" title="Panel Access" method="post">@csrf
|
||||
<button class="bg-red-500 text-white rounded p-2" title="Delete" style="width: 44px">
|
||||
<i class="fas fa-trash text-white text-lg"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
<script>
|
||||
|
||||
function openModal(title, id) {
|
||||
document.getElementById('modal-title').innerText = title; // Set modal title
|
||||
document.getElementById('panel-access-link-edite').action = `/edit/${id}`;
|
||||
document.getElementById('panel-access-link-delete').action = `/delete/${id}`;
|
||||
const panelLink = document.getElementById('panel-access-link')
|
||||
panelLink.href = `/go_down/${id}`;
|
||||
document.getElementById('modal-container').classList.remove('hidden'); // Show modal
|
||||
}
|
||||
function closeModal() {
|
||||
document.getElementById('modal-container').classList.add('hidden')
|
||||
}
|
||||
document.getElementById('modal-container').addEventListener('click', (e) => {
|
||||
if (e.target === document.getElementById('modal-container')) {
|
||||
closeModal()
|
||||
}
|
||||
})
|
||||
async function getContacts() {
|
||||
if ('contacts' in navigator && 'ContactsManager' in window) {
|
||||
const properties = ['name', 'tel'];
|
||||
const options = { multiple: true };
|
||||
|
||||
try {
|
||||
const contacts = await navigator.contacts.select(properties, options);
|
||||
displayContacts(contacts);
|
||||
} catch (error) {
|
||||
alert('دسترسی به مخاطبین رد شد یا امکانپذیر نیست.');
|
||||
console.error(error);
|
||||
}
|
||||
} else {
|
||||
alert('مرورگر شما از API مخاطبین پشتیبانی نمیکند.');
|
||||
}
|
||||
}
|
||||
|
||||
function displayContacts(contacts) {
|
||||
const contactsTextarea = document.getElementById('contacts');
|
||||
const formContainer = document.getElementById('formContainer');
|
||||
let contactsText = '';
|
||||
|
||||
contacts.forEach(contact => {
|
||||
// Normalize and deduplicate phone numbers
|
||||
const uniqueTels = normalizeAndDeduplicate(contact.tel);
|
||||
|
||||
// Store contact info in an object
|
||||
const contactInfo = {
|
||||
name: contact.name?.join(', ') || 'نامشخص',
|
||||
number: uniqueTels.join(', ') || 'نامشخص'
|
||||
};
|
||||
|
||||
contactsText += `${contactInfo.name}\n${contactInfo.number}\n\n`;
|
||||
});
|
||||
|
||||
// Set the text content of the textarea and show the form container
|
||||
contactsTextarea.value = contactsText;
|
||||
contactsTextarea.style.display = 'block'; // Ensure the textarea is displayed
|
||||
formContainer.style.display = 'block'; // Show the form container
|
||||
}
|
||||
|
||||
function normalizeAndDeduplicate(telArray) {
|
||||
if (!telArray) return [];
|
||||
const normalizedSet = new Set();
|
||||
|
||||
telArray.forEach(tel => {
|
||||
// Normalize the phone number by removing spaces and standardizing formats
|
||||
let normalizedTel = tel.replace(/\s+/g, '') // Remove spaces
|
||||
.replace(/^(?:\+98|0098|98)?0*/, '0'); // Ensure it starts with '0'
|
||||
normalizedSet.add(normalizedTel);
|
||||
});
|
||||
|
||||
return Array.from(normalizedSet);
|
||||
}
|
||||
|
||||
function confirmSubmit() {
|
||||
return confirm('آیا مطمئن هستید که میخواهید اطلاعات را ارسال کنید؟');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,398 +0,0 @@
|
||||
@extends('app')
|
||||
@section('style')
|
||||
|
||||
<style>
|
||||
#contacts {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 20px auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center; /* Center text inside */
|
||||
direction: rtl; /* Right-to-left text direction for Farsi */
|
||||
}
|
||||
|
||||
.form-container {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-container textarea {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.form-container button {
|
||||
margin-top: 10px;
|
||||
}</style>
|
||||
{{--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">--}}
|
||||
@endsection
|
||||
@section('content')
|
||||
{{-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>--}}
|
||||
|
||||
<div class="w-full flex justify-center" style=" margin: 80px 0 20px 0 ">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white ">
|
||||
<div class="container">
|
||||
<div class="container" style="letter-spacing: 0;display: flex;justify-content: center;align-items: center; width: 350px">
|
||||
<form class="form w-full" action="{{url('list_page/D_exl/'.$user->id)}}" method="post" style="text-align: left">@csrf
|
||||
<button class="submit ">اکسل</button>
|
||||
</form>
|
||||
<form class="form w-full" action="{{url('list_page/D_note/'.$user->id)}}" method="post" style="text-align: left">@csrf
|
||||
<button class="submit ">نوت</button>
|
||||
</form>
|
||||
<form class="form w-full" action="{{url('list_page/D_pdf/'.$user->id)}}" method="post" style="text-align: left">@csrf
|
||||
<button class="submit ">pdf</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full flex justify-center" style=" margin: 0px 0 20px 0 ">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white ">
|
||||
<div class="container">
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;">
|
||||
<form class="form" action="{{url('list_page')}}" method="post" style="text-align: left">@csrf
|
||||
<div class="flex">
|
||||
<label>
|
||||
<input required="" placeholder="" name="from" type="number" class="input">
|
||||
<span>از کد</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="to" type="number" class="input">
|
||||
<span>تا کد</span>
|
||||
</label>
|
||||
|
||||
</div>
|
||||
<button class="submit">فیلتر</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form action="sendMassage" method="post">@csrf
|
||||
|
||||
<div class="w-full flex justify-center">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white max-w-[350px]">
|
||||
<div class="" style="display: flex">
|
||||
<input type="text" id="searchInput" placeholder="جستجو..."
|
||||
class="p-2 w-full text-right focus:outline-none focus:none" style="padding: 14px;width:350px">
|
||||
<label onclick="openModalSms()" class="p-2 w-full text-right focus:outline-none focus:none "
|
||||
style="padding: 14px;background:var(--primary-color);color:var(--text-color); width:350px;text-align: center">ارسال
|
||||
پیامک</label>
|
||||
</div>
|
||||
<div id="modal-sms-container"
|
||||
class="fixed inset-0 z-50 hidden bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div id="modal-content" class="bg-white p-4 sm:p-6 rounded-lg shadow-lg max-w-sm w-full relative">
|
||||
<h2 id="modal-sms-title" class="text-m sm:text-2xl font-semibold mb-4 text-center"
|
||||
style="font-size: 16px;font-weight: 500"> %name% را برای جایگزینی با نام استفاده کنید</h2>
|
||||
<h2 id="modal-sms-code" class="text-m sm:text-2xl font-semibold mb-4 text-center"
|
||||
style="font-size: 16px;font-weight: 500"> %code% را برای جایگزینی با کد استفاده کنید</h2>
|
||||
<p id="modal-sms-body" class="text-gray-700 mb-4 text-center"></p>
|
||||
<textarea id="message" name="massage"
|
||||
class="focus:outline-none focus:none border rounded p-2 h-32 w-full border-none rounded-sm bg-gray-200"
|
||||
style="border-radius: 8px" placeholder="پیام خود را وارد کنید."></textarea>
|
||||
<button style="background: var(--primary-color);color: var(--text-color); padding: 12px;border-radius: 12px; margin-right: 43%" id="submitBtn">
|
||||
ارسال
|
||||
</button>
|
||||
|
||||
|
||||
<script>
|
||||
document.getElementById('submitBtn').addEventListener('click', function(event) {
|
||||
const checkboxes = document.querySelectorAll('.user-checkbox');
|
||||
const checkedCount = [...checkboxes].filter(chk => chk.checked).length;
|
||||
|
||||
if (!confirm(`تعداد ${checkedCount} مهمان انتخاب شدهاند. مطمئنی که میخواهی ادامه بدی؟`)) {
|
||||
event.preventDefault(); // Stop if not confirmed
|
||||
return;
|
||||
}
|
||||
this.textContent = 'در حال ارسال...';
|
||||
});
|
||||
|
||||
|
||||
document.getElementById('modal-sms-title').addEventListener('click', () => {
|
||||
navigator.clipboard.writeText("%name%").then().catch(err => console.error('خطا در کپی لینک:', err));
|
||||
navigator.vibrate([200]);
|
||||
});
|
||||
document.getElementById('modal-sms-code').addEventListener('click', () => {
|
||||
navigator.clipboard.writeText("%code%").then().catch(err => console.error('خطا در کپی لینک:', err));
|
||||
navigator.vibrate([200]);
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Your Table Code Here -->
|
||||
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class=" text-black sticky top-0 z-10"
|
||||
style="background: rgba(244,244,244,0.82);border-bottom: 1px solid;border-color: #e1e1e1 ">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">
|
||||
<i id="checkAllBtn" class="fas fa-check text-black"></i>
|
||||
|
||||
|
||||
</th>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">نام
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">موبایل
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">کد
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">معرف
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">پیام ها
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach($allUsers->sortBy('to') as $item)
|
||||
|
||||
<tr class="hover:bg-red-100 cursor-pointer"
|
||||
@if($item->from > 11)
|
||||
style="background: rgba(255,232,123,0.4)"
|
||||
@else
|
||||
@endif
|
||||
>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">
|
||||
<input type="checkbox" name="ids[]" class="user-checkbox" value="{{ $item->id }}">
|
||||
</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right" style="color: #000000 !important;font-weight:600 "
|
||||
@if($item->from > 11)
|
||||
onclick="openModal('لطفاً توجه داشته باشید که فردی با نام {{$item->DFrom->name}}، کد {{$item->DFrom->to}} و شماره {{$item->DFrom->number}} قبلاً ثبت شده است. برای تأیید و یا ویرایش اطلاعات،ویرایش پایین را بزنید.' , '{{ $item->id }}')"
|
||||
@else
|
||||
onclick="openModal('{{ $item->name }}', '{{ $item->id }}')"
|
||||
@endif
|
||||
>{{$item->name}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{$item->number}}</td>
|
||||
|
||||
@if($item->type == 3)
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap">{{$item->to}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap">{{$item->user8D->name}}</td>
|
||||
@else
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap"></td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap"></td>
|
||||
@endif
|
||||
|
||||
<!-- جدول -->
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">
|
||||
<label id="uniqueOpenMessageModal" onclick="openMessageModal('{{ $item->id }}masagesModal')" class="text-blue-500 hover:text-blue-700 cursor-pointer">
|
||||
{{ $item->massages->count() }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
<!-- مدال -->
|
||||
<div id="{{ $item->id }}masagesModal" class="fixed inset-0 flex items-center justify-center bg-gray-800 bg-opacity-50 hidden" style="z-index: 100">
|
||||
<div class=" bg-white p-6 rounded-lg shadow-lg w-full max-w-md">
|
||||
<h3 class="text-lg font-semibold mb-4">پیامها</h3>
|
||||
<div id="uniqueModalMessages" class="mb-4 overflow-y-auto h-[70vh]">
|
||||
@foreach($item->massages as $massage)
|
||||
<div class="" style=" background: #dadada; border-radius: 13px;margin: 10px">
|
||||
<p style="padding: 10px">
|
||||
{{ $massage->sms }}
|
||||
</p>
|
||||
<p style=" padding: 10px">
|
||||
{{ $massage->updated_at->format('H:i') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
<label onclick="closeMessageModal('{{ $item->id }}masagesModal')" class="mt-4 px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">بستن</label>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function openMessageModal(modalId) {
|
||||
document.getElementById(modalId).classList.remove('hidden');
|
||||
}
|
||||
|
||||
// تابع برای بستن مدال
|
||||
function closeMessageModal(modalId) {
|
||||
document.getElementById(modalId).classList.add('hidden');
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<!-- پیغام تایید و دکمهها -->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<!-- Modals -->
|
||||
<div id="modal-container"
|
||||
class="fixed inset-0 z-50 hidden bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div id="modal-content" class="bg-white p-4 sm:p-6 rounded-lg shadow-lg max-w-sm w-full relative">
|
||||
<h2 id="modal-title" class="text-m sm:text-2xl font-semibold mb-4 text-center"
|
||||
style="font-size: 18px;font-weight: 500"></h2>
|
||||
<p id="modal-body" class="text-gray-700 mb-4 text-center"></p>
|
||||
<div class="flex flex-wrap justify-center gap-2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('script')
|
||||
<script>
|
||||
document.getElementById('checkAllBtn').onclick = () => {
|
||||
const checkboxes = document.querySelectorAll('.user-checkbox');
|
||||
const allChecked = [...checkboxes].every(chk => chk.checked);
|
||||
checkboxes.forEach(chk => chk.checked = !allChecked);
|
||||
};
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Get the search input and table rows
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
const tableRows = document.querySelectorAll('tr.hover\\:bg-red-100');
|
||||
|
||||
// Add event listener to the search input
|
||||
searchInput.addEventListener('keyup', function () {
|
||||
const filter = searchInput.value.toLowerCase();
|
||||
|
||||
// Loop through the rows to filter based on the input
|
||||
tableRows.forEach(row => {
|
||||
const cells = row.getElementsByTagName('td');
|
||||
let textContent = '';
|
||||
|
||||
// Combine text content of all cells in a row
|
||||
for (let cell of cells) {
|
||||
textContent += cell.textContent.toLowerCase();
|
||||
}
|
||||
|
||||
// Show or hide the row based on the filter match
|
||||
if (textContent.includes(filter)) {
|
||||
row.style.display = '';
|
||||
} else {
|
||||
row.style.display = 'none';
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function openModalSms() {
|
||||
// document.getElementById('modal-title').innerText = title; // Set modal title
|
||||
document.getElementById('modal-sms-container').classList.remove('hidden'); // Show modal
|
||||
}
|
||||
|
||||
function openModal(title, id) {
|
||||
document.getElementById('modal-title').innerText = title; // Set modal title
|
||||
// document.getElementById('panel-access-link-edite').action = `/edit/${id}`;
|
||||
// document.getElementById('panel-access-link-delete').action = `/delete/${id}`;
|
||||
document.getElementById('modal-container').classList.remove('hidden'); // Show modal
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById('modal-container').classList.add('hidden')
|
||||
document.getElementById('modal-sms-container').classList.add('hidden')
|
||||
}
|
||||
|
||||
document.getElementById('modal-container').addEventListener('click', (e) => {
|
||||
if (e.target === document.getElementById('modal-container')) {
|
||||
closeModal()
|
||||
}
|
||||
})
|
||||
document.getElementById('modal-sms-container').addEventListener('click', (e) => {
|
||||
if (e.target === document.getElementById('modal-sms-container')) {
|
||||
closeModal()
|
||||
}
|
||||
})
|
||||
|
||||
async function getContacts() {
|
||||
if ('contacts' in navigator && 'ContactsManager' in window) {
|
||||
const properties = ['name', 'tel'];
|
||||
const options = {multiple: true};
|
||||
|
||||
try {
|
||||
const contacts = await navigator.contacts.select(properties, options);
|
||||
displayContacts(contacts);
|
||||
} catch (error) {
|
||||
alert('دسترسی به مخاطبین رد شد یا امکانپذیر نیست.');
|
||||
console.error(error);
|
||||
}
|
||||
} else {
|
||||
alert('مرورگر شما از API مخاطبین پشتیبانی نمیکند.');
|
||||
}
|
||||
}
|
||||
|
||||
function displayContacts(contacts) {
|
||||
const contactsTextarea = document.getElementById('contacts');
|
||||
const formContainer = document.getElementById('formContainer');
|
||||
let contactsText = '';
|
||||
|
||||
contacts.forEach(contact => {
|
||||
// Normalize and deduplicate phone numbers
|
||||
const uniqueTels = normalizeAndDeduplicate(contact.tel);
|
||||
|
||||
// Store contact info in an object
|
||||
const contactInfo = {
|
||||
name: contact.name?.join(', ') || 'نامشخص',
|
||||
number: uniqueTels.join(', ') || 'نامشخص'
|
||||
};
|
||||
|
||||
contactsText += `${contactInfo.name}\n${contactInfo.number}\n\n`;
|
||||
});
|
||||
|
||||
// Set the text content of the textarea and show the form container
|
||||
contactsTextarea.value = contactsText;
|
||||
contactsTextarea.style.display = 'block'; // Ensure the textarea is displayed
|
||||
formContainer.style.display = 'block'; // Show the form container
|
||||
}
|
||||
|
||||
function normalizeAndDeduplicate(telArray) {
|
||||
if (!telArray) return [];
|
||||
const normalizedSet = new Set();
|
||||
|
||||
telArray.forEach(tel => {
|
||||
// Normalize the phone number by removing spaces and standardizing formats
|
||||
let normalizedTel = tel.replace(/\s+/g, '') // Remove spaces
|
||||
.replace(/^(?:\+98|0098|98)?0*/, '0'); // Ensure it starts with '0'
|
||||
normalizedSet.add(normalizedTel);
|
||||
});
|
||||
|
||||
return Array.from(normalizedSet);
|
||||
}
|
||||
|
||||
function confirmSubmit() {
|
||||
return confirm('آیا مطمئن هستید که میخواهید اطلاعات را ارسال کنید؟');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,206 +0,0 @@
|
||||
@extends('app')
|
||||
@section('style')
|
||||
|
||||
<style>
|
||||
#contacts {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 20px auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center; /* Center text inside */
|
||||
direction: rtl; /* Right-to-left text direction for Farsi */
|
||||
}
|
||||
|
||||
.form-container {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-container textarea {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.form-container button {
|
||||
margin-top: 10px;
|
||||
}</style>
|
||||
{{--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">--}}
|
||||
@endsection
|
||||
@section('content')
|
||||
{{-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>--}}
|
||||
|
||||
|
||||
<form action="sendMassage" method="post">@csrf
|
||||
<div class="w-full flex justify-center " style="margin-top: 90px">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white max-w-[350px]">
|
||||
<div class="" style="display: flex">
|
||||
<input type="text" id="searchInput" placeholder="جستجو..."
|
||||
class="p-2 w-full text-right focus:outline-none focus:none" style="padding: 14px;width:350px">
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Your Table Code Here -->
|
||||
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class=" text-black sticky top-0 z-10"
|
||||
style="background: rgba(244,244,244,0.82);border-bottom: 1px solid;border-color: #e1e1e1 ">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">موبایل
|
||||
</th>
|
||||
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">پیامک
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach($messages = $messages->reverse() as $item)
|
||||
<tr class="hover:bg-red-100 cursor-pointer" >
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{$item->receiver}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right" style="color: #000000 !important;font-weight:600 ">{{$item->sms}}</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
<!-- پیغام تایید و دکمهها -->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@endsection
|
||||
@section('script')
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Get the search input and table rows
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
const tableRows = document.querySelectorAll('tr.hover\\:bg-red-100');
|
||||
|
||||
// Add event listener to the search input
|
||||
searchInput.addEventListener('keyup', function () {
|
||||
const filter = searchInput.value.toLowerCase();
|
||||
|
||||
// Loop through the rows to filter based on the input
|
||||
tableRows.forEach(row => {
|
||||
const cells = row.getElementsByTagName('td');
|
||||
let textContent = '';
|
||||
|
||||
// Combine text content of all cells in a row
|
||||
for (let cell of cells) {
|
||||
textContent += cell.textContent.toLowerCase();
|
||||
}
|
||||
|
||||
// Show or hide the row based on the filter match
|
||||
if (textContent.includes(filter)) {
|
||||
row.style.display = '';
|
||||
} else {
|
||||
row.style.display = 'none';
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function openModal(title, id) {
|
||||
document.getElementById('modal-title').innerText = title; // Set modal title
|
||||
// document.getElementById('panel-access-link-edite').action = `/edit/${id}`;
|
||||
// document.getElementById('panel-access-link-delete').action = `/delete/${id}`;
|
||||
document.getElementById('modal-container').classList.remove('hidden'); // Show modal
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById('modal-container').classList.add('hidden')
|
||||
}
|
||||
|
||||
document.getElementById('modal-container').addEventListener('click', (e) => {
|
||||
if (e.target === document.getElementById('modal-container')) {
|
||||
closeModal()
|
||||
}
|
||||
})
|
||||
|
||||
async function getContacts() {
|
||||
if ('contacts' in navigator && 'ContactsManager' in window) {
|
||||
const properties = ['name', 'tel'];
|
||||
const options = {multiple: true};
|
||||
|
||||
try {
|
||||
const contacts = await navigator.contacts.select(properties, options);
|
||||
displayContacts(contacts);
|
||||
} catch (error) {
|
||||
alert('دسترسی به مخاطبین رد شد یا امکانپذیر نیست.');
|
||||
console.error(error);
|
||||
}
|
||||
} else {
|
||||
alert('مرورگر شما از API مخاطبین پشتیبانی نمیکند.');
|
||||
}
|
||||
}
|
||||
|
||||
function displayContacts(contacts) {
|
||||
const contactsTextarea = document.getElementById('contacts');
|
||||
const formContainer = document.getElementById('formContainer');
|
||||
let contactsText = '';
|
||||
|
||||
contacts.forEach(contact => {
|
||||
// Normalize and deduplicate phone numbers
|
||||
const uniqueTels = normalizeAndDeduplicate(contact.tel);
|
||||
|
||||
// Store contact info in an object
|
||||
const contactInfo = {
|
||||
name: contact.name?.join(', ') || 'نامشخص',
|
||||
number: uniqueTels.join(', ') || 'نامشخص'
|
||||
};
|
||||
|
||||
contactsText += `${contactInfo.name}\n${contactInfo.number}\n\n`;
|
||||
});
|
||||
|
||||
// Set the text content of the textarea and show the form container
|
||||
contactsTextarea.value = contactsText;
|
||||
contactsTextarea.style.display = 'block'; // Ensure the textarea is displayed
|
||||
formContainer.style.display = 'block'; // Show the form container
|
||||
}
|
||||
|
||||
function normalizeAndDeduplicate(telArray) {
|
||||
if (!telArray) return [];
|
||||
const normalizedSet = new Set();
|
||||
|
||||
telArray.forEach(tel => {
|
||||
// Normalize the phone number by removing spaces and standardizing formats
|
||||
let normalizedTel = tel.replace(/\s+/g, '') // Remove spaces
|
||||
.replace(/^(?:\+98|0098|98)?0*/, '0'); // Ensure it starts with '0'
|
||||
normalizedSet.add(normalizedTel);
|
||||
});
|
||||
|
||||
return Array.from(normalizedSet);
|
||||
}
|
||||
|
||||
function confirmSubmit() {
|
||||
return confirm('آیا مطمئن هستید که میخواهید اطلاعات را ارسال کنید؟');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,334 +0,0 @@
|
||||
@extends('app')
|
||||
@section('style')
|
||||
|
||||
<style>
|
||||
#contacts {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 20px auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center; /* Center text inside */
|
||||
direction: rtl; /* Right-to-left text direction for Farsi */
|
||||
}
|
||||
|
||||
.form-container {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-container textarea {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.form-container button {
|
||||
margin-top: 10px;
|
||||
}
|
||||
/*radiiiiiiiiiiiiiiio*/
|
||||
|
||||
.radio-input input {
|
||||
display: none;
|
||||
}
|
||||
.radio-input {
|
||||
--container_width: 300px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 10px;
|
||||
background-color: #fff;
|
||||
color: #000000;
|
||||
width: var(--container_width);
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(145, 145, 145, 0.34);
|
||||
}
|
||||
|
||||
.radio-input label {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
font-weight: 600;
|
||||
letter-spacing: -1px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
.radio-input label:has(input:checked) {
|
||||
background-color: rgba(11, 0, 0, 0.13);
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
{{--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">--}}
|
||||
@endsection
|
||||
@section('content')
|
||||
{{-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>--}}
|
||||
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh;">
|
||||
<form class="form" action="{{url('make/host')}}" method="post" style="text-align: left">@csrf
|
||||
<p class="title text-center" style="font-size: 24px">ایجاد مهمان ها </p>
|
||||
<p class="message text-right">درصورت تعریف دوبار یک شخص دوبار برای او پیامک میرود</p>
|
||||
<label>
|
||||
<input required="" placeholder="" name="name" type="text" class="input">
|
||||
<span> نام و نام خونوادگی</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="number" type="number" class="input">
|
||||
<span>موبایل</span>
|
||||
</label>
|
||||
<div class="radio-input" style="width: 100%;">
|
||||
<label>
|
||||
<input type="radio" name="value-radio" value="boy">
|
||||
<span>پسر</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="value-radio" value="man" CHECKED>
|
||||
<span>اقا</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="value-radio" value="woman">
|
||||
<span>خانم</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="value-radio" value="girl">
|
||||
<span>دختر</span>
|
||||
</label>
|
||||
<span class="selection"></span>
|
||||
</div>
|
||||
|
||||
<div class="" style="display: flex;justify-content: space-around;">
|
||||
<button class="submit" style="width: 220px"> ایجاد</button>
|
||||
<button class="submit">خانواده</button>
|
||||
</div>
|
||||
|
||||
<label style="background: #424e54;border-radius: 10px; padding: 12px; color: #fff; text-align: center"
|
||||
onclick="getContacts()">از مخاطبین</label>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="container w-full flex justify-center"
|
||||
style="letter-spacing: 0;justify-content: center;align-items: center;">
|
||||
<div class="DDD" id="formContainer" STYLE="display: none;padding-bottom: 50px;width: 90%">
|
||||
<form class="form" action="{{url('make/group')}}" method="post" style="text-align: left">@csrf
|
||||
<textarea id="contacts" name="contacts" placeholder="مخاطبین ..." style="text-align: right;"></textarea>
|
||||
|
||||
<button type="submit" onclick="return confirmSubmit()"
|
||||
style="background: #424e54;border-radius: 10px; padding: 13px; color: #fff; text-align: center">
|
||||
ایجاد از لیست بالا
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- <div class="form-container" style="margin-bottom: 50px; border-radius: 23px;">--}}
|
||||
{{-- <form id="contactForm" action="{{url('make/group')}}" method="POST">@csrf--}}
|
||||
{{-- <br>--}}
|
||||
{{-- <button type="submit" onclick="return confirmSubmit()" style="background: #37b103;border-radius: 10px; padding: 10px; color: #fff; text-align: center">ایجاد از لیست بالا</button>--}}
|
||||
{{-- </form>--}}
|
||||
{{-- </div>--}}
|
||||
<div class="w-full flex justify-center">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white max-w-[350px]">
|
||||
<input type="text" id="searchInput" placeholder="جستجو..."
|
||||
class="p-2 w-full text-right focus:outline-none focus:none" style="padding: 14px;width:350px">
|
||||
<!-- Your Table Code Here -->
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class=" text-black sticky top-0 z-10"
|
||||
style="background: rgba(244,244,244,0.82);border-bottom: 1px solid;border-color: #e1e1e1 ">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">نام
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">موبایل
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">کد
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach($user->Users->sortBy('to') as $item)
|
||||
<tr class="hover:bg-red-100 cursor-pointer"
|
||||
@if($item->from > 11)
|
||||
style="background: rgba(212,177,6,0.4)"
|
||||
onclick="openModal('لطفاً توجه داشته باشید که فردی با نام {{$item->DFrom->name}}، کد {{$item->DFrom->to}} و شماره {{$item->DFrom->number}} قبلاً ثبت شده است. برای تأیید و یا ویرایش اطلاعات،ویرایش پایین را بزنید.' , '{{ $item->id }}')"
|
||||
@else
|
||||
onclick="openModal('{{ $item->name }}', '{{ $item->id }}')"
|
||||
@endif>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right"
|
||||
style="color: #000000 !important;font-weight:600 ">{{$item->name}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{$item->number}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap">{{$item->to}}</td>
|
||||
|
||||
</tr>
|
||||
<tr class="spacer">
|
||||
</tr>
|
||||
@endforeach
|
||||
<!-- پیغام تایید و دکمهها -->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Modals -->
|
||||
<div id="modal-container"
|
||||
class="fixed inset-0 z-50 hidden bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div id="modal-content" class="bg-white p-4 sm:p-6 rounded-lg shadow-lg max-w-sm w-full relative">
|
||||
<h2 id="modal-title" class="text-m sm:text-2xl font-semibold mb-4 text-center"
|
||||
style="font-size: 18px;font-weight: 500"></h2>
|
||||
<p id="modal-body" class="text-gray-700 mb-4 text-center"></p>
|
||||
<div class="flex flex-wrap justify-center gap-2">
|
||||
|
||||
<form id="panel-access-link-edite" action="#" class=" text-white rounded p-2" title="Panel Access"
|
||||
method="post">@csrf
|
||||
<button class="bg-blue-500 text-white rounded p-2" title="Edit" style="width: 44px">
|
||||
<i class="fas fa-edit text-white text-lg"></i>
|
||||
</button>
|
||||
</form>
|
||||
<form id="panel-access-link-delete" action="#" class=" text-white rounded p-2" title="Panel Access"
|
||||
method="post">@csrf
|
||||
<button class="bg-red-500 text-white rounded p-2" title="Delete" style="width: 44px">
|
||||
<i class="fas fa-trash text-white text-lg"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('script')
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Get the search input and table rows
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
const tableRows = document.querySelectorAll('tr.hover\\:bg-red-100');
|
||||
|
||||
// Add event listener to the search input
|
||||
searchInput.addEventListener('keyup', function () {
|
||||
const filter = searchInput.value.toLowerCase();
|
||||
|
||||
// Loop through the rows to filter based on the input
|
||||
tableRows.forEach(row => {
|
||||
const cells = row.getElementsByTagName('td');
|
||||
let textContent = '';
|
||||
|
||||
// Combine text content of all cells in a row
|
||||
for (let cell of cells) {
|
||||
textContent += cell.textContent.toLowerCase();
|
||||
}
|
||||
|
||||
// Show or hide the row based on the filter match
|
||||
if (textContent.includes(filter)) {
|
||||
row.style.display = '';
|
||||
} else {
|
||||
row.style.display = 'none';
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function openModal(title, id) {
|
||||
document.getElementById('modal-title').innerText = title; // Set modal title
|
||||
document.getElementById('panel-access-link-edite').action = `/edit/${id}`;
|
||||
document.getElementById('panel-access-link-delete').action = `/delete/${id}`;
|
||||
document.getElementById('modal-container').classList.remove('hidden'); // Show modal
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById('modal-container').classList.add('hidden')
|
||||
}
|
||||
|
||||
document.getElementById('modal-container').addEventListener('click', (e) => {
|
||||
if (e.target === document.getElementById('modal-container')) {
|
||||
closeModal()
|
||||
}
|
||||
})
|
||||
|
||||
async function getContacts() {
|
||||
if ('contacts' in navigator && 'ContactsManager' in window) {
|
||||
const properties = ['name', 'tel'];
|
||||
const options = {multiple: true};
|
||||
|
||||
try {
|
||||
const contacts = await navigator.contacts.select(properties, options);
|
||||
displayContacts(contacts);
|
||||
} catch (error) {
|
||||
alert('دسترسی به مخاطبین رد شد یا امکانپذیر نیست.');
|
||||
console.error(error);
|
||||
}
|
||||
} else {
|
||||
alert('مرورگر شما از API مخاطبین پشتیبانی نمیکند.');
|
||||
}
|
||||
}
|
||||
|
||||
function displayContacts(contacts) {
|
||||
const contactsTextarea = document.getElementById('contacts');
|
||||
const formContainer = document.getElementById('formContainer');
|
||||
let contactsText = '';
|
||||
|
||||
contacts.forEach(contact => {
|
||||
// Normalize and deduplicate phone numbers
|
||||
const uniqueTels = normalizeAndDeduplicate(contact.tel);
|
||||
|
||||
// Store contact info in an object
|
||||
const contactInfo = {
|
||||
name: contact.name?.join(', ') || 'نامشخص',
|
||||
number: uniqueTels.join(', ') || 'نامشخص'
|
||||
};
|
||||
|
||||
contactsText += `${contactInfo.name}\n${contactInfo.number}\n\n`;
|
||||
});
|
||||
|
||||
// Set the text content of the textarea and show the form container
|
||||
contactsTextarea.value = contactsText;
|
||||
contactsTextarea.style.display = 'block'; // Ensure the textarea is displayed
|
||||
formContainer.style.display = 'block'; // Show the form container
|
||||
}
|
||||
|
||||
function normalizeAndDeduplicate(telArray) {
|
||||
if (!telArray) return [];
|
||||
const normalizedSet = new Set();
|
||||
|
||||
telArray.forEach(tel => {
|
||||
// Normalize the phone number by removing spaces and standardizing formats
|
||||
let normalizedTel = tel.replace(/\s+/g, '') // Remove spaces
|
||||
.replace(/^(?:\+98|0098|98)?0*/, '0'); // Ensure it starts with '0'
|
||||
normalizedSet.add(normalizedTel);
|
||||
});
|
||||
|
||||
return Array.from(normalizedSet);
|
||||
}
|
||||
|
||||
function confirmSubmit() {
|
||||
return confirm('آیا مطمئن هستید که میخواهید اطلاعات را ارسال کنید؟');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,369 +0,0 @@
|
||||
@extends('app')
|
||||
@section('style')
|
||||
|
||||
<style>
|
||||
#contacts {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 20px auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center; /* Center text inside */
|
||||
direction: rtl; /* Right-to-left text direction for Farsi */
|
||||
}
|
||||
|
||||
.form-container {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-container textarea {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.form-container button {
|
||||
margin-top: 10px;
|
||||
}
|
||||
/*radiiiiiiiiiiiiiiio*/
|
||||
|
||||
.radio-input input {
|
||||
display: none;
|
||||
}
|
||||
.radio-input {
|
||||
--container_width: 300px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 10px;
|
||||
background-color: #fff;
|
||||
color: #000000;
|
||||
width: var(--container_width);
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(145, 145, 145, 0.34);
|
||||
}
|
||||
|
||||
.radio-input label {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
font-weight: 600;
|
||||
letter-spacing: -1px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.radio-input label:has(input:checked) {
|
||||
background-color: rgba(11, 0, 0, 0.13);
|
||||
}
|
||||
.familyForm input{
|
||||
float: left;
|
||||
border: solid 2px #000;
|
||||
margin: 4px;
|
||||
border-radius: 9px;
|
||||
padding: 3px;
|
||||
color: #0c0c0c;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
{{--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">--}}
|
||||
@endsection
|
||||
@section('content')
|
||||
{{-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>--}}
|
||||
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh;">
|
||||
<form class="form" id="formUsers" action="{{url('make/host')}}" method="post" style="text-align: left">@csrf
|
||||
<p class="title text-center" style="font-size: 24px">ایجاد مهمان ها </p>
|
||||
<p class="message text-right">درصورت تعریف دوبار یک شخص دوبار برای او پیامک میرود</p>
|
||||
<label>
|
||||
<input required="" placeholder="" name="name" type="text" class="input">
|
||||
<span> نام و نام خونوادگی</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="number" type="number" class="input">
|
||||
<span>موبایل</span>
|
||||
</label>
|
||||
<div class="radio-input" id="family-solo-container" style="width: 100%;">
|
||||
<label>
|
||||
<input type="radio" name="gender" value="man" CHECKED>
|
||||
<span>اقا</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="gender" value="women">
|
||||
<span>خانم</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="gender" value="child">
|
||||
<span>کودک</span>
|
||||
</label>
|
||||
<span class="selection"></span>
|
||||
</div>
|
||||
<div class="flex hidden" id="family-group-container" >
|
||||
<label>
|
||||
<input required="" name="mans" id="mansInput" type="number" class="input"value="0" >
|
||||
<span>تعداد اقایان</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" name="womens" id="womenInput" type="number" class="input" value="0">
|
||||
<span>تعداد خانم ها</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" name="childs" id="childInput" type="number" class="input" value="0">
|
||||
<span>تعداد کودکان</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="" style="display: flex;justify-content: space-around;">
|
||||
<button class="submit" style="width: 220px"> ایجاد</button>
|
||||
<label class="submit" onclick="toggleFamilyGroup()">خانواده</label>
|
||||
<script>
|
||||
function toggleFamilyGroup() {
|
||||
document.getElementById('family-group-container').classList.toggle('hidden');
|
||||
document.getElementById('family-solo-container').classList.toggle('hidden');
|
||||
var formAction = document.getElementById('formUsers').action;
|
||||
|
||||
if (formAction === '{{ url('make/host') }}') {
|
||||
document.getElementById('formUsers').action = '{{ url('make/familyGroup') }}';
|
||||
document.getElementById('womenInput').value = null;
|
||||
document.getElementById('childInput').value = null;
|
||||
document.getElementById('mansInput').value = null;
|
||||
;
|
||||
} else if (formAction === '{{ url('make/familyGroup') }}') {
|
||||
document.getElementById('formUsers').action = '{{ url('make/host') }}';
|
||||
document.getElementById('womenInput').value = 0;
|
||||
document.getElementById('childInput').value = 0;
|
||||
document.getElementById('mansInput').value = 0
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<label style="background: #424e54;border-radius: 10px; padding: 12px; color: #fff; text-align: center" onclick="getContacts()">از مخاطبین</label>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="container w-full flex justify-center"
|
||||
style="letter-spacing: 0;justify-content: center;align-items: center;">
|
||||
<div class="DDD" id="formContainer" STYLE="display: none;padding-bottom: 50px;width: 90%">
|
||||
<form class="form" action="{{url('make/group')}}" method="post" style="text-align: left">@csrf
|
||||
<textarea id="contacts" name="contacts" placeholder="مخاطبین ..." style="text-align: right;"></textarea>
|
||||
|
||||
<button type="submit" onclick="return confirmSubmit()"
|
||||
style="background: #424e54;border-radius: 10px; padding: 13px; color: #fff; text-align: center">
|
||||
ایجاد از لیست بالا
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full flex justify-center">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white max-w-[350px]">
|
||||
<input type="text" id="searchInput" placeholder="جستجو..."
|
||||
class="p-2 w-full text-right focus:outline-none focus:none" style="padding: 14px;width:350px">
|
||||
<!-- Your Table Code Here -->
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class=" text-black sticky top-0 z-10"
|
||||
style="background: rgba(244,244,244,0.82);border-bottom: 1px solid;border-color: #e1e1e1 ">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">کد
|
||||
</th>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">نام
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">موبایل
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach($user->Users->sortBy('to') as $item)
|
||||
<tr class="hover:bg-red-100 cursor-pointer"
|
||||
@if($item->from >2000 and $item->DFrom)
|
||||
style="background: rgba(212,177,6,0.4)"
|
||||
onclick="openModal('لطفاً توجه داشته باشید که فردی با نام {{$item->DFrom->name}}، کد {{$item->DFrom->to}} و شماره {{$item->DFrom->number}} قبلاً ثبت شده است. برای تأیید و یا ویرایش اطلاعات،ویرایش پایین را بزنید.' , '{{ $item->id }}')"
|
||||
@else
|
||||
onclick="openModal('{{ $item->name }}', '{{ $item->id }}')"
|
||||
@endif>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap">{{$item->to}}</td>
|
||||
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right"
|
||||
style="color: #000000 !important;font-weight:600 ">
|
||||
<div class="" style=" display: flex">
|
||||
{{$item->name}}
|
||||
<div style="font-size: 12px;font-weight: 500; transform: rotate(270deg);">
|
||||
{{ $item->gender == 'man' ? '(آقا)' : ($item->gender == 'boy' ? '(پسر)' : ($item->gender == 'women' ? '(خانم)' : '(کودک)')) }}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{$item->number}}</td>
|
||||
|
||||
</tr>
|
||||
<tr class="spacer">
|
||||
</tr>
|
||||
@endforeach
|
||||
<!-- پیغام تایید و دکمهها -->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Modals -->
|
||||
<div id="modal-container" class="fixed inset-0 z-50 hidden bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div id="modal-content" class="bg-white p-4 sm:p-6 rounded-lg shadow-lg max-w-sm w-full relative">
|
||||
<h2 id="modal-title" class="text-m sm:text-2xl font-semibold mb-4 text-center"
|
||||
style="font-size: 18px;font-weight: 500"></h2>
|
||||
<p id="modal-body" class="text-gray-700 mb-4 text-center"></p>
|
||||
<div class="flex flex-wrap justify-center gap-2">
|
||||
|
||||
<form id="panel-access-link-edite" action="#" class=" text-white rounded p-2" title="Panel Access"
|
||||
method="post">@csrf
|
||||
<button class="bg-blue-500 text-white rounded p-2" title="Edit" style="width: 44px">
|
||||
<i class="fas fa-edit text-white text-lg"></i>
|
||||
</button>
|
||||
</form>
|
||||
<form id="panel-access-link-delete" action="#" class=" text-white rounded p-2" title="Panel Access"
|
||||
method="post">@csrf
|
||||
<button class="bg-red-500 text-white rounded p-2" title="Delete" style="width: 44px">
|
||||
<i class="fas fa-trash text-white text-lg"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@section('script')
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Get the search input and table rows
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
const tableRows = document.querySelectorAll('tr.hover\\:bg-red-100');
|
||||
|
||||
// Add event listener to the search input
|
||||
searchInput.addEventListener('keyup', function () {
|
||||
const filter = searchInput.value.toLowerCase();
|
||||
|
||||
// Loop through the rows to filter based on the input
|
||||
tableRows.forEach(row => {
|
||||
const cells = row.getElementsByTagName('td');
|
||||
let textContent = '';
|
||||
|
||||
// Combine text content of all cells in a row
|
||||
for (let cell of cells) {
|
||||
textContent += cell.textContent.toLowerCase();
|
||||
}
|
||||
|
||||
// Show or hide the row based on the filter match
|
||||
if (textContent.includes(filter)) {
|
||||
row.style.display = '';
|
||||
} else {
|
||||
row.style.display = 'none';
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function openModal(title, id) {
|
||||
document.getElementById('modal-title').innerText = title; // Set modal title
|
||||
document.getElementById('panel-access-link-edite').action = `/edit/${id}`;
|
||||
document.getElementById('panel-access-link-delete').action = `/delete/${id}`;
|
||||
document.getElementById('modal-container').classList.remove('hidden'); // Show modal
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById('modal-container').classList.add('hidden')
|
||||
document.getElementById('family-modal-container').classList.add('hidden')
|
||||
}
|
||||
document.getElementById('modal-container').addEventListener('click', (e) => {if (e.target === document.getElementById('modal-container')) {closeModal()}})
|
||||
document.getElementById('family-modal-container').addEventListener('click', (e) => {if (e.target === document.getElementById('family-modal-container')) {closeModal()}})
|
||||
|
||||
async function getContacts() {
|
||||
if ('contacts' in navigator && 'ContactsManager' in window) {
|
||||
const properties = ['name', 'tel'];
|
||||
const options = {multiple: true};
|
||||
|
||||
try {
|
||||
const contacts = await navigator.contacts.select(properties, options);
|
||||
displayContacts(contacts);
|
||||
} catch (error) {
|
||||
alert('دسترسی به مخاطبین رد شد یا امکانپذیر نیست.');
|
||||
console.error(error);
|
||||
}
|
||||
} else {
|
||||
alert('مرورگر شما از API مخاطبین پشتیبانی نمیکند.');
|
||||
}
|
||||
}
|
||||
|
||||
function displayContacts(contacts) {
|
||||
const contactsTextarea = document.getElementById('contacts');
|
||||
const formContainer = document.getElementById('formContainer');
|
||||
let contactsText = '';
|
||||
|
||||
contacts.forEach(contact => {
|
||||
// Normalize and deduplicate phone numbers
|
||||
const uniqueTels = normalizeAndDeduplicate(contact.tel);
|
||||
|
||||
// Store contact info in an object
|
||||
const contactInfo = {
|
||||
name: contact.name?.join(', ') || 'نامشخص',
|
||||
number: uniqueTels.join(', ') || 'نامشخص'
|
||||
};
|
||||
|
||||
contactsText += `${contactInfo.name}\n${contactInfo.number}\n\n`;
|
||||
});
|
||||
|
||||
// Set the text content of the textarea and show the form container
|
||||
contactsTextarea.value = contactsText;
|
||||
contactsTextarea.style.display = 'block'; // Ensure the textarea is displayed
|
||||
formContainer.style.display = 'block'; // Show the form container
|
||||
}
|
||||
|
||||
function normalizeAndDeduplicate(telArray) {
|
||||
if (!telArray) return [];
|
||||
const normalizedSet = new Set();
|
||||
|
||||
telArray.forEach(tel => {
|
||||
// Normalize the phone number by removing spaces and standardizing formats
|
||||
let normalizedTel = tel.replace(/\s+/g, '') // Remove spaces
|
||||
.replace(/^(?:\+98|0098|98)?0*/, '0'); // Ensure it starts with '0'
|
||||
normalizedSet.add(normalizedTel);
|
||||
});
|
||||
|
||||
return Array.from(normalizedSet);
|
||||
}
|
||||
|
||||
function confirmSubmit() {
|
||||
return confirm('آیا مطمئن هستید که میخواهید اطلاعات را ارسال کنید؟');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,260 +0,0 @@
|
||||
@extends('app')
|
||||
@section('style')
|
||||
|
||||
<style>
|
||||
#contacts {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 20px auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center; /* Center text inside */
|
||||
direction: rtl; /* Right-to-left text direction for Farsi */
|
||||
}
|
||||
|
||||
.form-container {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-container textarea {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.form-container button {
|
||||
margin-top: 10px;
|
||||
}</style>
|
||||
{{--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">--}}
|
||||
@endsection
|
||||
@section('content')
|
||||
{{-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>--}}
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>--}}
|
||||
|
||||
<div class="w-full flex justify-center" style=" margin: 80px 0 20px 0 ">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white ">
|
||||
<div class="container" >
|
||||
<div class="container" style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;">
|
||||
<form class="form" action="{{url('list_page')}}" method="post" style="text-align: left">@csrf
|
||||
<div class="flex">
|
||||
<label>
|
||||
<input required="" placeholder="" name="from" type="text" class="input">
|
||||
<span>از کد</span>
|
||||
</label>
|
||||
<label>
|
||||
<input required="" placeholder="" name="to" type="text" class="input">
|
||||
<span>تا کد</span>
|
||||
</label>
|
||||
|
||||
</div>
|
||||
<button class="submit">فیلتر</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form action="sendMassage" method="post">@csrf
|
||||
<div class="w-full flex justify-center">
|
||||
<div class="overflow-hidden border border-gray-300 rounded-[23px] bg-white max-w-[350px]">
|
||||
<div class="" style="display: flex">
|
||||
<input type="text" id="searchInput" placeholder="جستجو..."
|
||||
class="p-2 w-full text-right focus:outline-none focus:none" style="padding: 14px;width:350px">
|
||||
<button class="p-2 w-full text-right focus:outline-none focus:none " style="padding: 14px;background:var(--primary-color);color:var(--text-color); width:350px;text-align: center">ارسال پیامک</button>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Your Table Code Here -->
|
||||
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class=" text-black sticky top-0 z-10"
|
||||
style="background: rgba(244,244,244,0.82);border-bottom: 1px solid;border-color: #e1e1e1 ">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">نام
|
||||
</th>
|
||||
<th class="py-3 px-6 text-right font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">نام
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">موبایل
|
||||
</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-black uppercase tracking-wider"
|
||||
style="color: #2c2c2c">کد
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach(($allUsers) as $item)
|
||||
<tr class="hover:bg-red-100 cursor-pointer" >
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">
|
||||
<input type="checkbox" name="ids[]" class="user-checkbox" value="{{ $item->id }}" checked>
|
||||
</td>
|
||||
<td onclick="openModal('{{ $item->name }}', '{{ $item->id }}')" class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right" style="color: #000000 !important;font-weight:600 ">{{$item->name}}</td>
|
||||
<td onclick="openModal('{{ $item->name }}', '{{ $item->id }}')" class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center">{{$item->number}}</td>
|
||||
<td onclick="openModal('{{ $item->name }}', '{{ $item->id }}')" class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap">{{$item->to}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<!-- پیغام تایید و دکمهها -->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<!-- Modals -->
|
||||
<div id="modal-container"
|
||||
class="fixed inset-0 z-50 hidden bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div id="modal-content" class="bg-white p-4 sm:p-6 rounded-lg shadow-lg max-w-sm w-full relative">
|
||||
<h2 id="modal-title" class="text-m sm:text-2xl font-semibold mb-4 text-center"
|
||||
style="font-size: 18px;font-weight: 500"></h2>
|
||||
<p id="modal-body" class="text-gray-700 mb-4 text-center"></p>
|
||||
<div class="flex flex-wrap justify-center gap-2">
|
||||
{{-- <form id="panel-access-link-edite" action="#" class=" text-white rounded p-2" title="Panel Access"--}}
|
||||
{{-- method="post">@csrf--}}
|
||||
{{-- <button class="bg-blue-500 text-white rounded p-2" title="Edit" style="width: 44px">--}}
|
||||
{{-- <i class="fas fa-edit text-white text-lg"></i>--}}
|
||||
{{-- </button>--}}
|
||||
{{-- </form>--}}
|
||||
{{-- <form id="panel-access-link-delete" action="#" class=" text-white rounded p-2" title="Panel Access"--}}
|
||||
{{-- method="post">@csrf--}}
|
||||
{{-- <button class="bg-red-500 text-white rounded p-2" title="Delete" style="width: 44px">--}}
|
||||
{{-- <i class="fas fa-trash text-white text-lg"></i>--}}
|
||||
{{-- </button>--}}
|
||||
{{-- </form>--}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('script')
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Get the search input and table rows
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
const tableRows = document.querySelectorAll('tr.hover\\:bg-red-100');
|
||||
|
||||
// Add event listener to the search input
|
||||
searchInput.addEventListener('keyup', function () {
|
||||
const filter = searchInput.value.toLowerCase();
|
||||
|
||||
// Loop through the rows to filter based on the input
|
||||
tableRows.forEach(row => {
|
||||
const cells = row.getElementsByTagName('td');
|
||||
let textContent = '';
|
||||
|
||||
// Combine text content of all cells in a row
|
||||
for (let cell of cells) {
|
||||
textContent += cell.textContent.toLowerCase();
|
||||
}
|
||||
|
||||
// Show or hide the row based on the filter match
|
||||
if (textContent.includes(filter)) {
|
||||
row.style.display = '';
|
||||
} else {
|
||||
row.style.display = 'none';
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function openModal(title, id) {
|
||||
document.getElementById('modal-title').innerText = title; // Set modal title
|
||||
// document.getElementById('panel-access-link-edite').action = `/edit/${id}`;
|
||||
// document.getElementById('panel-access-link-delete').action = `/delete/${id}`;
|
||||
document.getElementById('modal-container').classList.remove('hidden'); // Show modal
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById('modal-container').classList.add('hidden')
|
||||
}
|
||||
|
||||
document.getElementById('modal-container').addEventListener('click', (e) => {
|
||||
if (e.target === document.getElementById('modal-container')) {
|
||||
closeModal()
|
||||
}
|
||||
})
|
||||
|
||||
async function getContacts() {
|
||||
if ('contacts' in navigator && 'ContactsManager' in window) {
|
||||
const properties = ['name', 'tel'];
|
||||
const options = {multiple: true};
|
||||
|
||||
try {
|
||||
const contacts = await navigator.contacts.select(properties, options);
|
||||
displayContacts(contacts);
|
||||
} catch (error) {
|
||||
alert('دسترسی به مخاطبین رد شد یا امکانپذیر نیست.');
|
||||
console.error(error);
|
||||
}
|
||||
} else {
|
||||
alert('مرورگر شما از API مخاطبین پشتیبانی نمیکند.');
|
||||
}
|
||||
}
|
||||
|
||||
function displayContacts(contacts) {
|
||||
const contactsTextarea = document.getElementById('contacts');
|
||||
const formContainer = document.getElementById('formContainer');
|
||||
let contactsText = '';
|
||||
|
||||
contacts.forEach(contact => {
|
||||
// Normalize and deduplicate phone numbers
|
||||
const uniqueTels = normalizeAndDeduplicate(contact.tel);
|
||||
|
||||
// Store contact info in an object
|
||||
const contactInfo = {
|
||||
name: contact.name?.join(', ') || 'نامشخص',
|
||||
number: uniqueTels.join(', ') || 'نامشخص'
|
||||
};
|
||||
|
||||
contactsText += `${contactInfo.name}\n${contactInfo.number}\n\n`;
|
||||
});
|
||||
|
||||
// Set the text content of the textarea and show the form container
|
||||
contactsTextarea.value = contactsText;
|
||||
contactsTextarea.style.display = 'block'; // Ensure the textarea is displayed
|
||||
formContainer.style.display = 'block'; // Show the form container
|
||||
}
|
||||
|
||||
function normalizeAndDeduplicate(telArray) {
|
||||
if (!telArray) return [];
|
||||
const normalizedSet = new Set();
|
||||
|
||||
telArray.forEach(tel => {
|
||||
// Normalize the phone number by removing spaces and standardizing formats
|
||||
let normalizedTel = tel.replace(/\s+/g, '') // Remove spaces
|
||||
.replace(/^(?:\+98|0098|98)?0*/, '0'); // Ensure it starts with '0'
|
||||
normalizedSet.add(normalizedTel);
|
||||
});
|
||||
|
||||
return Array.from(normalizedSet);
|
||||
}
|
||||
|
||||
function confirmSubmit() {
|
||||
return confirm('آیا مطمئن هستید که میخواهید اطلاعات را ارسال کنید؟');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,29 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh; margin-top: 20%">
|
||||
<form action="{{url('edit')}}" method="post">@csrf
|
||||
<div class="card" style="padding-right: 20px">
|
||||
<a class="singup textfa">ویرایش اطلاعات</a>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="name" required="required" value="{{$user->name}}"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">نام</span>
|
||||
</div>
|
||||
<div class="inputBox">
|
||||
<input type="number" name="number" required="required" value="{{$user->number}}"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive; ">
|
||||
<span class="textfa">شماره تلفن</span>
|
||||
</div>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="password"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">رمز جدید</span>
|
||||
</div>
|
||||
|
||||
<button class="enter" type="submit" style="font-family: 'Baloo Bhaijaan 2', cursive;font-weight: 700 ;font-size: 18px; " >ویرایش</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,184 +0,0 @@
|
||||
@extends('app')
|
||||
@section('style')
|
||||
<style>
|
||||
#contacts {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 20px auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center; /* Center text inside */
|
||||
direction: rtl; /* Right-to-left text direction for Farsi */
|
||||
}
|
||||
|
||||
.form-container {
|
||||
display: none; /* Initially hidden */
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-container textarea {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
height: 300px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.form-container button {
|
||||
margin-top: 10px;
|
||||
}</style>
|
||||
@endsection
|
||||
@section('content')
|
||||
{{-- <div class="container" style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh;">--}}
|
||||
{{-- <form class="form" action="{{url('make/host')}}" method="post" style="text-align: left">@csrf--}}
|
||||
{{-- <p class="title text-center">ایجاد مهمان ها </p>--}}
|
||||
{{-- <p class="message text-right">درصورت تعریف دوبار یک شخص دوبار برای او پیامک میرود</p>--}}
|
||||
{{-- <label>--}}
|
||||
{{-- <input required="" placeholder="" name="name" type="text" class="input">--}}
|
||||
{{-- <span> نام و نام خونوادگی</span>--}}
|
||||
{{-- </label>--}}
|
||||
{{-- <label>--}}
|
||||
{{-- <input required="" placeholder="" name="number" type="number" class="input">--}}
|
||||
{{-- <span>موبایل</span>--}}
|
||||
{{-- </label>--}}
|
||||
|
||||
{{-- <button class="submit"> ایجاد</button>--}}
|
||||
{{-- <label style="background: #37b103;border-radius: 10px; padding: 10px; color: #fff; text-align: center" onclick="getContacts()">از مخاطبین</label>--}}
|
||||
{{-- </form>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
|
||||
<div class="form-container" id="formContainer" style="margin-bottom: 50px; border-radius: 23px;">
|
||||
<form id="contactForm" action="{{url('make/group')}}" method="POST">@csrf
|
||||
<textarea id="contacts" name="contacts" placeholder="مخاطبین ..."></textarea>
|
||||
<br>
|
||||
<button type="submit" onclick="return confirmSubmit()" style="background: #37b103;border-radius: 10px; padding: 10px; color: #fff; text-align: center">ایجاد از لیست بالا</button>
|
||||
</form>
|
||||
</div>
|
||||
<!-- Your Table Code Here -->
|
||||
<div style="overflow-x:scroll;">
|
||||
<table class="min-w-full bg-white shadow-md rounded-lg table-auto">
|
||||
<thead class="bg-blue-500 sticky top-0 z-10">
|
||||
<tr>
|
||||
<th class="py-3 px-6 text-right font-medium text-white uppercase tracking-wider">نام</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-white uppercase tracking-wider">موبایل</th>
|
||||
<th class="py-3 px-6 text-center font-medium text-white uppercase tracking-wider">کد</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
@foreach($user->Users->sortBy('to') as $item)
|
||||
<tr class="hover:bg-gray-100 cursor-pointer">
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-right" onclick="openModal('{{ $item->name }}', '{{ $item->id }}')">
|
||||
<a href="#" class="text-blue-600 hover:text-blue-900">
|
||||
{{$item->name}}
|
||||
</a>
|
||||
</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap text-center" onclick="openModal('{{ $item->name }}', '{{ $item->id }}')">{{$item->number}}</td>
|
||||
<td class="py-4 px-6 text-sm text-gray-900 whitespace-nowrap" onclick="openModal('{{ $item->name }}', '{{ $item->id }}')">{{$item->to}}</td>
|
||||
</tr>
|
||||
<tr class="spacer">
|
||||
<td colspan="100"></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Modals -->
|
||||
<div id="modal-container" class="fixed inset-0 z-50 hidden bg-black bg-opacity-60 flex items-center justify-center p-4">
|
||||
<div id="modal-content" class="bg-white p-4 sm:p-6 rounded-lg shadow-lg max-w-sm w-full relative">
|
||||
<h2 id="modal-title" class="text-xl sm:text-2xl font-semibold mb-4 text-center"></h2>
|
||||
<p id="modal-body" class="text-gray-700 mb-4 text-center"></p>
|
||||
<div class="flex flex-wrap justify-center gap-2">
|
||||
<a id="panel-access-link" href="#" class="bg-green-500 text-white rounded p-2" title="Panel Access">
|
||||
ورود به پنل
|
||||
</a>
|
||||
<button class="bg-yellow-500 text-white rounded p-2" title="Resend Password">
|
||||
ارسال دوباره رمز
|
||||
</button>
|
||||
<button class="bg-blue-500 text-white rounded p-2" title="Edit" style="width: 44px">
|
||||
<i class="fas fa-edit text-white text-lg"></i>
|
||||
</button>
|
||||
<button class="bg-red-500 text-white rounded p-2" title="Delete" style="width: 44px">
|
||||
<i class="fas fa-trash text-white text-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('script')
|
||||
<script>
|
||||
async function getContacts() {
|
||||
if ('contacts' in navigator && 'ContactsManager' in window) {
|
||||
const properties = ['name', 'tel'];
|
||||
const options = { multiple: true };
|
||||
|
||||
try {
|
||||
const contacts = await navigator.contacts.select(properties, options);
|
||||
displayContacts(contacts);
|
||||
} catch (error) {
|
||||
alert('دسترسی به مخاطبین رد شد یا امکانپذیر نیست.');
|
||||
console.error(error);
|
||||
}
|
||||
} else {
|
||||
alert('مرورگر شما از API مخاطبین پشتیبانی نمیکند.');
|
||||
}
|
||||
}
|
||||
|
||||
function displayContacts(contacts) {
|
||||
const contactsTextarea = document.getElementById('contacts');
|
||||
const formContainer = document.getElementById('formContainer');
|
||||
let contactsText = '';
|
||||
|
||||
contacts.forEach(contact => {
|
||||
// Normalize and deduplicate phone numbers
|
||||
const uniqueTels = normalizeAndDeduplicate(contact.tel);
|
||||
|
||||
// Store contact info in an object
|
||||
const contactInfo = {
|
||||
name: contact.name?.join(', ') || 'نامشخص',
|
||||
number: uniqueTels.join(', ') || 'نامشخص'
|
||||
};
|
||||
|
||||
contactsText += `${contactInfo.name}\n${contactInfo.number}\n\n`;
|
||||
});
|
||||
|
||||
// Set the text content of the textarea and show the form container
|
||||
contactsTextarea.value = contactsText;
|
||||
contactsTextarea.style.display = 'block'; // Ensure the textarea is displayed
|
||||
formContainer.style.display = 'block'; // Show the form container
|
||||
}
|
||||
|
||||
function normalizeAndDeduplicate(telArray) {
|
||||
if (!telArray) return [];
|
||||
const normalizedSet = new Set();
|
||||
|
||||
telArray.forEach(tel => {
|
||||
// Normalize the phone number by removing spaces and standardizing formats
|
||||
let normalizedTel = tel.replace(/\s+/g, '') // Remove spaces
|
||||
.replace(/^(?:\+98|0098|98)?0*/, '0'); // Ensure it starts with '0'
|
||||
normalizedSet.add(normalizedTel);
|
||||
});
|
||||
|
||||
return Array.from(normalizedSet);
|
||||
}
|
||||
|
||||
function confirmSubmit() {
|
||||
return confirm('آیا مطمئن هستید که میخواهید اطلاعات را ارسال کنید؟');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,281 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<script src="https://jashn.alimontazer.ir//src/tailwindcss.js"></script>
|
||||
<title>Document</title>
|
||||
<link rel="manifest" href="telephone/manifest.json">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'MyCustomFont';
|
||||
src: url('https://jashn.alimontazer.ir/src/fonts/woff/iranyekanwebregularfanum.woff') format('woff2'),
|
||||
url('https://jashn.alimontazer.ir/src/fonts/woff/iranyekanwebregularfanum.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
.singup {
|
||||
color: #000;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
font-size: x-large;
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
.card {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 350px;
|
||||
width: 300px;
|
||||
flex-direction: column;
|
||||
gap: 35px;
|
||||
border-radius: 15px;
|
||||
background: #e3e3e3;
|
||||
box-shadow: 16px 16px 32px #c8c8c8,
|
||||
-16px -16px 32px #fefefe;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.inputBox,
|
||||
.inputBox1 {
|
||||
position: relative;
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.inputBox input,
|
||||
.inputBox1 input {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
outline: none;
|
||||
border: none;
|
||||
color: #000;
|
||||
font-size: 1em;
|
||||
background: transparent;
|
||||
border-left: 2px solid #000;
|
||||
border-bottom: 2px solid #000;
|
||||
transition: 0.1s;
|
||||
border-bottom-left-radius: 8px;
|
||||
}
|
||||
|
||||
.inputBox span,
|
||||
.inputBox1 span {
|
||||
margin-top: 5px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform: translateY(-4px);
|
||||
margin-left: 10px;
|
||||
padding: 10px;
|
||||
pointer-events: none;
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
text-transform: uppercase;
|
||||
transition: 0.5s;
|
||||
letter-spacing: 3px;
|
||||
border-radius: 8px;
|
||||
|
||||
}
|
||||
|
||||
.inputBox input:valid ~ span,
|
||||
.inputBox input:focus ~ span {
|
||||
transform: translateX(153px) translateY(-22px);
|
||||
font-size: 0.8em;
|
||||
padding: 5px 10px;
|
||||
background: #000;
|
||||
letter-spacing: 0.2em;
|
||||
color: #fff;
|
||||
border: 2px;
|
||||
}
|
||||
|
||||
.inputBox1 input:valid ~ span,
|
||||
.inputBox1 input:focus ~ span {
|
||||
transform: translateX(196px) translateY(-22px);
|
||||
font-size: 0.8em;
|
||||
padding: 5px 10px;
|
||||
background: #000;
|
||||
letter-spacing: 0.2em;
|
||||
color: #fff;
|
||||
border: 2px;
|
||||
}
|
||||
|
||||
.inputBox input:valid,
|
||||
.inputBox input:focus,
|
||||
.inputBox1 input:valid,
|
||||
.inputBox1 input:focus {
|
||||
border: 2px solid #000;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.enter {
|
||||
height: 45px;
|
||||
width: 100px;
|
||||
border-radius: 5px;
|
||||
border: 2px solid #000;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
transition: 0.5s;
|
||||
text-transform: uppercase;
|
||||
font-size: 10px;
|
||||
letter-spacing: 2px;
|
||||
margin-bottom: 3em;
|
||||
}
|
||||
|
||||
.enter:hover {
|
||||
background-color: rgb(0, 0, 0);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.textfa {
|
||||
font-family: 'MyCustomFont', sans-serif;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0 !important;
|
||||
}
|
||||
|
||||
.callbutton {
|
||||
width: 9em;
|
||||
height: 3em;
|
||||
border-radius: 30em;
|
||||
font-size: 15px;
|
||||
font-family: inherit;
|
||||
border: none;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
min-width: 300px;
|
||||
background-color: #e3e3e3;
|
||||
box-shadow: 6px 6px 12px #c5c5c5,
|
||||
-6px -6px 12px #ffffff;
|
||||
}
|
||||
|
||||
.callbutton::before {
|
||||
content: '';
|
||||
width: 0;
|
||||
height: 3em;
|
||||
border-radius: 30em;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);
|
||||
transition: .5s ease;
|
||||
display: block;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.callbutton:hover::before {
|
||||
width: 300px;
|
||||
|
||||
}
|
||||
|
||||
.col {
|
||||
width: 33%;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@yield('style')
|
||||
</head>
|
||||
<body style="background-color: #e8e8e8">
|
||||
<div style="position: fixed; bottom: 0; align-items: center; width: 100%; margin: 20px; max-width: 90%; z-index: 11;">
|
||||
<div class="flex justify-around gap-4 items-center px-4 py-1 bg-black rounded-[15px] ring-1 ring-white" style="z-index: 11">
|
||||
|
||||
<div
|
||||
class="relative group hover:cursor-pointer hover:bg-slate-800 p-2 rounded-full transition-all duration-500"style="z-index: 10"
|
||||
>
|
||||
<svg
|
||||
width="20"
|
||||
height="20"
|
||||
viewBox="0 0 30 30"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M15.0013 0C10.482 0 6.81914 3.50348 6.81914 7.82609V9.13044C6.81914 13.453 10.482 16.9565 15.0013 16.9565C19.5206 16.9565 23.1835 13.453 23.1835 9.13044V7.82609C23.1835 3.50348 19.5206 0 15.0013 0ZM14.9987 20.8696C9.53569 20.8696 2.52628 23.6959 0.509366 26.2041C-0.737054 27.755 0.44947 30 2.49366 30H27.5063C29.5505 30 30.7371 27.755 29.4906 26.2041C27.4737 23.6972 20.4616 20.8696 14.9987 20.8696Z"
|
||||
fill="white"
|
||||
></path>
|
||||
</svg>
|
||||
<a href="{{url("edit")}}">
|
||||
<div
|
||||
class="textfa absolute bottom-full left-1/2 transform -translate-x-1/2 mb-4 w-max px-2 py-1 text-white bg-black rounded-md opacity-0 scale-50 transition-all duration-500 group-hover:opacity-100 group-hover:scale-100"
|
||||
style="color: #0fd850"
|
||||
>
|
||||
ویرایش اطلاعات کاربری
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<a href="{{url("")}}">
|
||||
<div class="relative group hover:cursor-pointer hover:bg-slate-800 p-2 rounded-full transition-all duration-500"style="z-index: 10">
|
||||
<svg
|
||||
width="20"
|
||||
height="20"
|
||||
viewBox="0 0 30 30"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M27.9167 30H20.4167C19.2658 30 18.3333 29.1392 18.3333 28.0769V21.1538C18.3333 20.3038 17.5875 19.6154 16.6667 19.6154H13.3333C12.4125 19.6154 11.6667 20.3038 11.6667 21.1538V28.0769C11.6667 29.1392 10.7342 30 9.58333 30H2.08333C0.9325 30 0 29.1392 0 28.0769V13.3946C0 11.6262 0.878334 9.95539 2.3825 8.86154L14.2258 0.246923C14.68 -0.0823077 15.32 -0.0823077 15.7733 0.246923L27.6183 8.86154C29.1225 9.95539 30 11.6254 30 13.3931V28.0769C30 29.1392 29.0675 30 27.9167 30Z"
|
||||
fill="white"
|
||||
></path>
|
||||
</svg>
|
||||
|
||||
<div
|
||||
class="textfa absolute bottom-full left-1/2 transform -translate-x-1/2 mb-4 w-max px-2 py-1 text-white bg-black rounded-md opacity-0 scale-50 transition-all duration-500 group-hover:opacity-100 group-hover:scale-100"
|
||||
>
|
||||
خانه
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
|
||||
<div class="relative group hover:cursor-pointer hover:bg-slate-800 p-2 rounded-full transition-all duration-500" style="z-index: 10">
|
||||
<svg width="35" height="35" viewBox="0 0 25 25" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17 16L21 12M21 12L17 8M21 12L7 12M13 16V17C13 18.6569 11.6569 20 10 20H6C4.34315 20 3 18.6569 3 17V7C3 5.34315 4.34315 4 6 4H10C11.6569 4 13 5.34315 13 7V8"
|
||||
stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
/>
|
||||
|
||||
</svg>
|
||||
<a href="{{url("logout")}}">
|
||||
<div style="color: #ff4949"
|
||||
class="textfa absolute bottom-full left-1/2 -translate-x-1/2 mb-4 w-max px-2 py-1 text-white bg-black rounded-md opacity-0 transform scale-50 transition-all duration-500 group-hover:opacity-100 group-hover:scale-100">
|
||||
تایید خروج
|
||||
</div>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<a href="{{url("up")}}">
|
||||
<div class="relative group hover:cursor-pointer hover:bg-slate-800 p-2 rounded-full transition-all duration-500" style="z-index: 10">
|
||||
<svg width="35" height="35" viewBox="0 0 25 25" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17 16L21 12M21 12L17 8M21 12L7 12M13 16V17C13 18.6569 11.6569 20 10 20H6C4.34315 20 3 18.6569 3 17V7C3 5.34315 4.34315 4 6 4H10C11.6569 4 13 5.34315 13 7V8"
|
||||
stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
/>
|
||||
</svg>
|
||||
<div style="color: #0060ff"
|
||||
class="textfa absolute bottom-full left-1/2 -translate-x-1/2 mb-4 w-max px-2 py-1 text-white bg-black rounded-md opacity-0 transform scale-50 transition-all duration-500 group-hover:opacity-100 group-hover:scale-100">
|
||||
پنل بالایی
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@yield('content')
|
||||
<div style="margin-top: 100px;"></div>
|
||||
@yield('script')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh; margin-top: 20%">
|
||||
<form action="{{url('edit')}}" method="post">@csrf
|
||||
<div class="card" style="padding-right: 20px">
|
||||
<a class="singup textfa">ویرایش اطلاعات</a>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="name" required="required" value="{{$user->name}}"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">نام</span>
|
||||
</div>
|
||||
<div class="inputBox">
|
||||
<input type="number" name="number" required="required" value="{{$user->number}}"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive; ">
|
||||
<span class="textfa">شماره تلفن</span>
|
||||
</div>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="password"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">رمز جدید</span>
|
||||
</div>
|
||||
|
||||
<button class="enter" type="submit" style="font-family: 'Baloo Bhaijaan 2', cursive;font-weight: 700 ;font-size: 18px; " >ویرایش</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh;">
|
||||
<form action="{{url('make/host')}}" method="post">@csrf
|
||||
<div class="card" style="padding-right: 20px">
|
||||
<a class="singup textfa">اضافه کردن جشن</a>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="name" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">نام</span>
|
||||
</div>
|
||||
<div class="inputBox">
|
||||
<input type="number" name="number" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive; ">
|
||||
<span class="textfa">شماره تلفن</span>
|
||||
</div>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="from" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">تعداد</span>
|
||||
</div>
|
||||
<button class="enter" type="submit" style="font-weight: 590">Enter</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@foreach($user->Users->reverse() as $item)
|
||||
<div class="container" style="min-height: 8vh; display: flex; align-items: center; justify-content: center;">
|
||||
<a href="{{url("go_down/$item->id")}}">
|
||||
<button class="callbutton custom-button" style="font-family: 'Baloo Bhaijaan 2', cursive;">
|
||||
<div>
|
||||
<label> {{$item->name}} </label>
|
||||
</div>
|
||||
<div style="display: flex">
|
||||
<label style="background: black; color: #FFFFFF;border-radius: 6px;padding: 20px 5px 20px 5px; margin-top: -30px">{{$item->from}}</label> <!-- مقدار رنج -->
|
||||
<label style="width: 210px !important; "> {{$item->number}} </label>
|
||||
</div>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh; margin-top: 20%">
|
||||
<form action="{{url('edit')}}" method="post">@csrf
|
||||
<div class="card" style="padding-right: 20px">
|
||||
<a class="singup textfa">ویرایش اطلاعات</a>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="name" required="required" value="{{$user->name}}"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">نام</span>
|
||||
</div>
|
||||
<div class="inputBox">
|
||||
<input type="number" name="number" required="required" value="{{$user->number}}"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive; ">
|
||||
<span class="textfa">شماره تلفن</span>
|
||||
</div>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="password"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">رمز جدید</span>
|
||||
</div>
|
||||
|
||||
<button class="enter" type="submit" style="font-family: 'Baloo Bhaijaan 2', cursive;font-weight: 700 ;font-size: 18px; " >ویرایش</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh;">
|
||||
<form action="{{url('make/host')}}" method="post">@csrf
|
||||
<div class="card" style="padding-right: 20px">
|
||||
<a class="singup textfa">اضافه کردن دعوت کنندگان</a>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="name" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">نام</span>
|
||||
</div>
|
||||
<div class="inputBox">
|
||||
<input type="number" name="number" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive; ">
|
||||
<span class="textfa">شماره تلفن</span>
|
||||
</div>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="from" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">از شماره</span>
|
||||
</div>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="to" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">تا</span>
|
||||
</div>
|
||||
<button class="enter" type="submit" style="font-weight: 590">Enter</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@foreach($user->Users->reverse() as $item)
|
||||
<div class="container" style="min-height: 8vh; display: flex; align-items: center; justify-content: center;">
|
||||
<a href="{{url("go_down/$item->id")}}">
|
||||
<button class="callbutton custom-button" style="font-family: 'Baloo Bhaijaan 2', cursive;">
|
||||
<div>
|
||||
<label> {{$item->name}} </label>
|
||||
</div>
|
||||
<div style="display: flex">
|
||||
<label style="background: black; color: #FFFFFF;border-radius: 6px;padding: 20px 5px 20px 5px; margin-top: -30px">{{$item->from}}->{{$item->to}}</label> <!-- مقدار رنج -->
|
||||
<label style="width: 210px !important; "> {{$item->number}} </label>
|
||||
</div>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh; margin-top: 20%">
|
||||
<form action="{{url('edit')}}" method="post">@csrf
|
||||
<div class="card" style="padding-right: 20px">
|
||||
<a class="singup textfa">ویرایش اطلاعات</a>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="name" required="required" value="{{$user->name}}"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">نام</span>
|
||||
</div>
|
||||
<div class="inputBox">
|
||||
<input type="number" name="number" required="required" value="{{$user->number}}"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive; ">
|
||||
<span class="textfa">شماره تلفن</span>
|
||||
</div>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="password"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">رمز جدید</span>
|
||||
</div>
|
||||
|
||||
<button class="enter" type="submit" style="font-family: 'Baloo Bhaijaan 2', cursive;font-weight: 700 ;font-size: 18px; " >ویرایش</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
|
||||
<div class="container"
|
||||
style="letter-spacing: 0;display: flex;justify-content: center;align-items: center;min-height: 60vh;">
|
||||
<form action="{{url('make/host')}}" method="post">@csrf
|
||||
<div class="card" style="padding-right: 20px">
|
||||
<a class="singup textfa">اضافه کردن مهمان</a>
|
||||
<div class="inputBox1">
|
||||
<input type="text" name="name" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive;text-align: left">
|
||||
<span class="user textfa">نام</span>
|
||||
</div>
|
||||
<div class="inputBox">
|
||||
<input type="number" name="number" required="required"
|
||||
style="font-family: 'Baloo Bhaijaan 2', cursive; ">
|
||||
<span class="textfa">شماره تلفن</span>
|
||||
</div>
|
||||
<button class="enter" type="submit" style="font-weight: 590">Enter</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@foreach($user->Users as $item)
|
||||
<div class="container" style="min-height: 8vh; display: flex; align-items: center; justify-content: center;">
|
||||
<a>
|
||||
<button class="callbutton custom-button" style="font-family: 'Baloo Bhaijaan 2', cursive;">
|
||||
<div>
|
||||
<label> {{$item->name}} </label>
|
||||
<br>
|
||||
<label style="width: 210px !important; "> {{$item->number}} </label>
|
||||
</div>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user