git commit "feat: improve admin panel and frontend features"
This commit is contained in:
@@ -37,6 +37,9 @@ class AuthController extends Controller
|
|||||||
}
|
}
|
||||||
public function logout()
|
public function logout()
|
||||||
{
|
{
|
||||||
|
Auth::guard('admin')->logout();
|
||||||
|
request()->session()->invalidate();
|
||||||
|
request()->session()->regenerateToken();
|
||||||
|
return redirect()->route('admin.auth.login.index');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class FlightController extends Controller
|
|||||||
->filterType($request->type)
|
->filterType($request->type)
|
||||||
->sort($request->sort)
|
->sort($request->sort)
|
||||||
->latest()
|
->latest()
|
||||||
->paginate(4);
|
->paginate(2);
|
||||||
|
|
||||||
return view('admin.flights.index', compact('flights'));
|
return view('admin.flights.index', compact('flights'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class ProvinceController extends Controller
|
|||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$provinces = Province::latest()->paginate(10);
|
$provinces = Province::latest()->paginate(5);
|
||||||
|
|
||||||
return view('admin.provinces.index', compact('provinces'));
|
return view('admin.provinces.index', compact('provinces'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class TourController extends Controller
|
|||||||
->filterType($request->travel_type_id)
|
->filterType($request->travel_type_id)
|
||||||
->sort($request->sort)
|
->sort($request->sort)
|
||||||
->latest()
|
->latest()
|
||||||
->paginate(4);
|
->paginate(2);
|
||||||
|
|
||||||
return view('admin.tours.index', compact('tours'));
|
return view('admin.tours.index', compact('tours'));
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use App\Http\Middleware\AdminMiddleware;
|
use App\Http\Middleware\AdminMiddleware;
|
||||||
use Illuminate\Foundation\Application;
|
use Illuminate\Foundation\Application;
|
||||||
use Illuminate\Foundation\Configuration\Exceptions;
|
use Illuminate\Foundation\Configuration\Exceptions;
|
||||||
use Illuminate\Foundation\Configuration\Middleware;
|
use Illuminate\Foundation\Configuration\Middleware;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|||||||
@@ -222,4 +222,77 @@
|
|||||||
|
|
||||||
color: #1976d2;
|
color: #1976d2;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-navbar {
|
||||||
|
min-height: 68px;
|
||||||
|
background: #ffffff !important;
|
||||||
|
border-bottom: 1px solid #e9ecef;
|
||||||
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-navbar .navbar-brand {
|
||||||
|
color: #1f2937;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb-wrapper {
|
||||||
|
flex: 1;
|
||||||
|
margin: 0 30px;
|
||||||
|
color: #6b7280;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-user-area {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-user {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
color: #374151;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-user::before {
|
||||||
|
content: '';
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
background: #22c55e;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logout-form {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logout-btn {
|
||||||
|
border: 1px solid #fee2e2 !important;
|
||||||
|
background: #fff5f5 !important;
|
||||||
|
color: #dc3545 !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
padding: 7px 14px !important;
|
||||||
|
font-size: 13px !important;
|
||||||
|
font-weight: 600 !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
transition: all .2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logout-btn:hover {
|
||||||
|
background: #dc3545 !important;
|
||||||
|
border-color: #dc3545 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logout-btn:active {
|
||||||
|
transform: scale(.97);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,565 @@
|
|||||||
|
:root {
|
||||||
|
--bg: #f4f7fb;
|
||||||
|
--surface: #ffffff;
|
||||||
|
--border: #e5e7eb;
|
||||||
|
--text: #1f2937;
|
||||||
|
--text-muted: #6b7280;
|
||||||
|
--primary: #2563eb;
|
||||||
|
--primary-hover: #1d4ed8;
|
||||||
|
--danger: #ef4444;
|
||||||
|
|
||||||
|
--radius-lg: 22px;
|
||||||
|
--radius-md: 14px;
|
||||||
|
--radius-sm: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: var(--bg) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Hero Background */
|
||||||
|
.theme-hero-area-mask-strong {
|
||||||
|
background:
|
||||||
|
linear-gradient(
|
||||||
|
180deg,
|
||||||
|
rgba(255,255,255,.75),
|
||||||
|
rgba(255,255,255,.92)
|
||||||
|
) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Login Card */
|
||||||
|
|
||||||
|
.theme-login.theme-login-white {
|
||||||
|
|
||||||
|
background: rgba(255,255,255,.95);
|
||||||
|
|
||||||
|
border:1px solid var(--border);
|
||||||
|
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
|
||||||
|
box-shadow:
|
||||||
|
0 20px 50px rgba(0,0,0,.12);
|
||||||
|
|
||||||
|
padding:45px 40px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Header */
|
||||||
|
|
||||||
|
.theme-login-header {
|
||||||
|
|
||||||
|
text-align:center;
|
||||||
|
|
||||||
|
margin-bottom:35px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-title {
|
||||||
|
|
||||||
|
color:#111827 !important;
|
||||||
|
|
||||||
|
font-size:28px;
|
||||||
|
|
||||||
|
font-weight:800;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-subtitle {
|
||||||
|
|
||||||
|
color:#6b7280 !important;
|
||||||
|
|
||||||
|
margin-top:10px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Labels */
|
||||||
|
|
||||||
|
.theme-login-form label {
|
||||||
|
|
||||||
|
color:#374151 !important;
|
||||||
|
|
||||||
|
font-size:14px !important;
|
||||||
|
|
||||||
|
font-weight:600;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Inputs */
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-form input[type="text"],
|
||||||
|
.theme-login-form input[type="password"],
|
||||||
|
.theme-login-form input[type="email"] {
|
||||||
|
|
||||||
|
|
||||||
|
background:#fff !important;
|
||||||
|
|
||||||
|
border:1px solid #d1d5db !important;
|
||||||
|
|
||||||
|
|
||||||
|
color:#111827 !important;
|
||||||
|
|
||||||
|
|
||||||
|
height:52px;
|
||||||
|
|
||||||
|
|
||||||
|
border-radius:var(--radius-sm) !important;
|
||||||
|
|
||||||
|
|
||||||
|
padding:0 16px !important;
|
||||||
|
|
||||||
|
|
||||||
|
font-size:15px !important;
|
||||||
|
|
||||||
|
|
||||||
|
transition:.2s;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-form input::placeholder {
|
||||||
|
|
||||||
|
color:#9ca3af;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-form input:hover {
|
||||||
|
|
||||||
|
border-color:#93c5fd !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-form input:focus {
|
||||||
|
|
||||||
|
|
||||||
|
border-color:var(--primary) !important;
|
||||||
|
|
||||||
|
|
||||||
|
box-shadow:
|
||||||
|
|
||||||
|
0 0 0 4px rgba(37,99,235,.12) !important;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Button */
|
||||||
|
|
||||||
|
.submit-btn,
|
||||||
|
.theme-login-form button {
|
||||||
|
|
||||||
|
|
||||||
|
height:52px !important;
|
||||||
|
|
||||||
|
|
||||||
|
width:100%;
|
||||||
|
|
||||||
|
|
||||||
|
border-radius:var(--radius-sm) !important;
|
||||||
|
|
||||||
|
|
||||||
|
background:
|
||||||
|
|
||||||
|
linear-gradient(
|
||||||
|
135deg,
|
||||||
|
#2563eb,
|
||||||
|
#1d4ed8
|
||||||
|
) !important;
|
||||||
|
|
||||||
|
|
||||||
|
border:none !important;
|
||||||
|
|
||||||
|
|
||||||
|
color:white !important;
|
||||||
|
|
||||||
|
|
||||||
|
font-size:16px;
|
||||||
|
|
||||||
|
|
||||||
|
font-weight:700;
|
||||||
|
|
||||||
|
|
||||||
|
transition:.2s;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.submit-btn:hover,
|
||||||
|
.theme-login-form button:hover {
|
||||||
|
|
||||||
|
|
||||||
|
background:#1d4ed8 !important;
|
||||||
|
|
||||||
|
|
||||||
|
transform:translateY(-1px);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* checkbox */
|
||||||
|
|
||||||
|
.icheck-title {
|
||||||
|
|
||||||
|
color:#6b7280 !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Error */
|
||||||
|
|
||||||
|
.text-danger {
|
||||||
|
|
||||||
|
color:var(--danger) !important;
|
||||||
|
|
||||||
|
font-size:13px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Bottom text */
|
||||||
|
|
||||||
|
.theme-login-box-alt p {
|
||||||
|
|
||||||
|
color:#6b7280 !important;
|
||||||
|
|
||||||
|
text-align:center;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-box-alt a {
|
||||||
|
|
||||||
|
color:#2563eb !important;
|
||||||
|
|
||||||
|
font-weight:600;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Terms */
|
||||||
|
|
||||||
|
.theme-login-terms {
|
||||||
|
|
||||||
|
color:#9ca3af !important;
|
||||||
|
|
||||||
|
text-align:center;
|
||||||
|
|
||||||
|
font-size:13px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-terms a {
|
||||||
|
|
||||||
|
color:#2563eb;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--bg: #f5f7fb;
|
||||||
|
--surface: #ffffff;
|
||||||
|
--border: #e5e7eb;
|
||||||
|
--text: #1f2937;
|
||||||
|
--text-muted: #6b7280;
|
||||||
|
--primary: #2563eb;
|
||||||
|
--primary-hover: #1d4ed8;
|
||||||
|
--danger: #dc2626;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* صفحه */
|
||||||
|
body {
|
||||||
|
background: #f5f7fb !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* عکس پشت */
|
||||||
|
.theme-hero-area-mask-strong {
|
||||||
|
background: linear-gradient(
|
||||||
|
180deg,
|
||||||
|
rgba(255,255,255,.75),
|
||||||
|
rgba(245,247,251,.95)
|
||||||
|
) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* فاصله صفحه */
|
||||||
|
.theme-page-section {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* کارت لاگین */
|
||||||
|
.theme-login.theme-login-white {
|
||||||
|
|
||||||
|
background: var(--surface);
|
||||||
|
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
|
||||||
|
border-radius: 24px;
|
||||||
|
|
||||||
|
padding: 40px 38px;
|
||||||
|
|
||||||
|
box-shadow:
|
||||||
|
0 20px 40px rgba(0,0,0,.08);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* عنوان */
|
||||||
|
.theme-login-header {
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
margin-bottom: 30px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-title {
|
||||||
|
|
||||||
|
color: var(--text) !important;
|
||||||
|
|
||||||
|
font-size: 28px;
|
||||||
|
|
||||||
|
font-weight: 800;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-subtitle {
|
||||||
|
|
||||||
|
color: var(--text-muted) !important;
|
||||||
|
|
||||||
|
margin-top: 8px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* لیبل */
|
||||||
|
.theme-login-form label {
|
||||||
|
|
||||||
|
color: #374151 !important;
|
||||||
|
|
||||||
|
font-size: 14px;
|
||||||
|
|
||||||
|
font-weight: 600;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ورودی ها */
|
||||||
|
|
||||||
|
.theme-login-form input {
|
||||||
|
|
||||||
|
height: 52px;
|
||||||
|
|
||||||
|
background: #fff !important;
|
||||||
|
|
||||||
|
border: 1px solid #d1d5db !important;
|
||||||
|
|
||||||
|
border-radius: 12px !important;
|
||||||
|
|
||||||
|
color: #111827 !important;
|
||||||
|
|
||||||
|
padding: 0 16px !important;
|
||||||
|
|
||||||
|
transition: .2s;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-form input::placeholder {
|
||||||
|
|
||||||
|
color:#9ca3af;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-form input:focus {
|
||||||
|
|
||||||
|
border-color: var(--primary) !important;
|
||||||
|
|
||||||
|
box-shadow:
|
||||||
|
0 0 0 4px rgba(37,99,235,.12) !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* فاصله فیلدها */
|
||||||
|
|
||||||
|
.theme-login-form-group {
|
||||||
|
|
||||||
|
margin-bottom: 22px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* چک باکس */
|
||||||
|
|
||||||
|
.theme-login-checkbox {
|
||||||
|
|
||||||
|
margin: 20px 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.icheck-title {
|
||||||
|
|
||||||
|
color:#4b5563;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* دکمه */
|
||||||
|
|
||||||
|
.theme-login-form button {
|
||||||
|
|
||||||
|
|
||||||
|
height:54px;
|
||||||
|
|
||||||
|
border-radius:14px !important;
|
||||||
|
|
||||||
|
border:none !important;
|
||||||
|
|
||||||
|
|
||||||
|
background:
|
||||||
|
|
||||||
|
linear-gradient(
|
||||||
|
135deg,
|
||||||
|
#2563eb,
|
||||||
|
#3b82f6
|
||||||
|
) !important;
|
||||||
|
|
||||||
|
|
||||||
|
color:white !important;
|
||||||
|
|
||||||
|
|
||||||
|
font-size:16px;
|
||||||
|
|
||||||
|
font-weight:700;
|
||||||
|
|
||||||
|
|
||||||
|
transition:.2s;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-form button:hover {
|
||||||
|
|
||||||
|
|
||||||
|
background:
|
||||||
|
|
||||||
|
linear-gradient(
|
||||||
|
135deg,
|
||||||
|
#1d4ed8,
|
||||||
|
#2563eb
|
||||||
|
) !important;
|
||||||
|
|
||||||
|
|
||||||
|
transform:translateY(-1px);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* لینک ثبت نام */
|
||||||
|
|
||||||
|
.theme-login-box-alt {
|
||||||
|
|
||||||
|
text-align:center;
|
||||||
|
|
||||||
|
margin-top:25px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-box-alt p {
|
||||||
|
|
||||||
|
color:#6b7280 !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-box-alt a {
|
||||||
|
|
||||||
|
|
||||||
|
color:#2563eb !important;
|
||||||
|
|
||||||
|
font-weight:700;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* متن قوانین */
|
||||||
|
|
||||||
|
.theme-login-terms {
|
||||||
|
|
||||||
|
|
||||||
|
color:#9ca3af !important;
|
||||||
|
|
||||||
|
text-align:center;
|
||||||
|
|
||||||
|
font-size:13px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.theme-login-terms a {
|
||||||
|
|
||||||
|
color:#2563eb !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ارورها */
|
||||||
|
|
||||||
|
.text-danger {
|
||||||
|
|
||||||
|
color:#dc2626 !important;
|
||||||
|
|
||||||
|
font-size:13px;
|
||||||
|
|
||||||
|
margin-top:5px;
|
||||||
|
|
||||||
|
display:block;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,272 @@
|
|||||||
|
@extends('admin.layouts.app')
|
||||||
|
|
||||||
|
@section('breadcrumb')
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h1 class="page-title fw-medium fs-18 mb-2">
|
||||||
|
ایجاد ادمین
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<ol class="breadcrumb mb-0">
|
||||||
|
|
||||||
|
<li class="breadcrumb-item">
|
||||||
|
<a href="javascript:void(0)">
|
||||||
|
مدیریت ادمینها
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
ایجاد ادمین
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
<div class="container-fluid pt-4">
|
||||||
|
|
||||||
|
<div class="card custom-card">
|
||||||
|
|
||||||
|
<div class="card-header">
|
||||||
|
|
||||||
|
<div class="card-title">
|
||||||
|
ایجاد ادمین جدید
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form
|
||||||
|
action="{{ route('admin.admins.store') }}"
|
||||||
|
method="POST"
|
||||||
|
enctype="multipart/form-data"
|
||||||
|
>
|
||||||
|
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="row gy-3">
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
نام
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="first_name"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('first_name') }}"
|
||||||
|
placeholder="نام"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('first_name')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
نام خانوادگی
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="last_name"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('last_name') }}"
|
||||||
|
placeholder="نام خانوادگی"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('last_name')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
نام کاربری
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="username"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('username') }}"
|
||||||
|
placeholder="نام کاربری"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('username')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
ایمیل
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
|
name="email"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('email') }}"
|
||||||
|
placeholder="ایمیل"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('email')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
شماره موبایل
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="mobile"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('mobile') }}"
|
||||||
|
placeholder="شماره موبایل"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('mobile')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
کلمه عبور
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="password"
|
||||||
|
name="password"
|
||||||
|
class="form-control"
|
||||||
|
placeholder="کلمه عبور"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('password')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
تصویر
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="file"
|
||||||
|
name="image"
|
||||||
|
class="form-control"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('image')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
وضعیت
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<select
|
||||||
|
name="status"
|
||||||
|
class="form-control"
|
||||||
|
>
|
||||||
|
|
||||||
|
<option value="1"
|
||||||
|
{{ old('status', 1) == 1 ? 'selected' : '' }}>
|
||||||
|
فعال
|
||||||
|
</option>
|
||||||
|
|
||||||
|
<option value="0"
|
||||||
|
{{ old('status') === '0' ? 'selected' : '' }}>
|
||||||
|
غیرفعال
|
||||||
|
</option>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
@error('status')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer text-end">
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="{{ route('admin.admins.index') }}"
|
||||||
|
class="btn btn-secondary"
|
||||||
|
>
|
||||||
|
انصراف
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<button
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-primary"
|
||||||
|
>
|
||||||
|
ذخیره ادمین
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endsection
|
||||||
@@ -0,0 +1,289 @@
|
|||||||
|
@extends('admin.layouts.app')
|
||||||
|
|
||||||
|
@section('breadcrumb')
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h1 class="page-title fw-medium fs-18 mb-2">
|
||||||
|
ویرایش ادمین
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<ol class="breadcrumb mb-0">
|
||||||
|
|
||||||
|
<li class="breadcrumb-item">
|
||||||
|
<a href="javascript:void(0)">
|
||||||
|
مدیریت ادمینها
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
ویرایش ادمین
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
<div class="container-fluid pt-4">
|
||||||
|
|
||||||
|
<div class="card custom-card">
|
||||||
|
|
||||||
|
<div class="card-header">
|
||||||
|
|
||||||
|
<div class="card-title">
|
||||||
|
ویرایش ادمین
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form
|
||||||
|
action="{{ route('admin.admins.update', $admin) }}"
|
||||||
|
method="POST"
|
||||||
|
enctype="multipart/form-data"
|
||||||
|
>
|
||||||
|
|
||||||
|
@csrf
|
||||||
|
@method('PUT')
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="row gy-3">
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
نام
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="first_name"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('first_name', $admin->first_name) }}"
|
||||||
|
placeholder="نام"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('first_name')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
نام خانوادگی
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="last_name"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('last_name', $admin->last_name) }}"
|
||||||
|
placeholder="نام خانوادگی"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('last_name')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
نام کاربری
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="username"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('username', $admin->username) }}"
|
||||||
|
placeholder="نام کاربری"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('username')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
ایمیل
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
|
name="email"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('email', $admin->email) }}"
|
||||||
|
placeholder="ایمیل"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('email')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
شماره موبایل
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="mobile"
|
||||||
|
class="form-control"
|
||||||
|
value="{{ old('mobile', $admin->mobile) }}"
|
||||||
|
placeholder="شماره موبایل"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('mobile')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
کلمه عبور جدید
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="password"
|
||||||
|
name="password"
|
||||||
|
class="form-control"
|
||||||
|
placeholder="در صورت تغییر وارد کنید"
|
||||||
|
>
|
||||||
|
|
||||||
|
@error('password')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
تصویر
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="file"
|
||||||
|
name="image"
|
||||||
|
class="form-control"
|
||||||
|
>
|
||||||
|
|
||||||
|
@if($admin->image)
|
||||||
|
|
||||||
|
<div class="mt-2">
|
||||||
|
|
||||||
|
<img
|
||||||
|
src="{{ asset('storage/' . $admin->image) }}"
|
||||||
|
alt="تصویر ادمین"
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
style="object-fit: cover; border-radius: 10px;"
|
||||||
|
>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@error('image')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<label class="form-label">
|
||||||
|
وضعیت
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<select
|
||||||
|
name="status"
|
||||||
|
class="form-control"
|
||||||
|
>
|
||||||
|
|
||||||
|
<option value="1"
|
||||||
|
{{ old('status', $admin->status) == 1 ? 'selected' : '' }}>
|
||||||
|
فعال
|
||||||
|
</option>
|
||||||
|
|
||||||
|
<option value="0"
|
||||||
|
{{ old('status', $admin->status) == 0 ? 'selected' : '' }}>
|
||||||
|
غیرفعال
|
||||||
|
</option>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
@error('status')
|
||||||
|
<span class="text-danger">
|
||||||
|
{{ $message }}
|
||||||
|
</span>
|
||||||
|
@enderror
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer text-end">
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="{{ route('admin.admins.index') }}"
|
||||||
|
class="btn btn-secondary"
|
||||||
|
>
|
||||||
|
انصراف
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<button
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-primary"
|
||||||
|
>
|
||||||
|
ذخیره تغییرات
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endsection
|
||||||
@@ -0,0 +1,131 @@
|
|||||||
|
@extends('admin.layouts.app')
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
<div class="container-fluid pt-4">
|
||||||
|
|
||||||
|
<div class="card custom-card">
|
||||||
|
|
||||||
|
<div class="card-header d-flex justify-content-between align-items-center">
|
||||||
|
|
||||||
|
<div class="card-title">
|
||||||
|
لیست ادمینها
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="{{ route('admin.admins.create') }}"
|
||||||
|
class="btn btn-primary">
|
||||||
|
ایجاد ادمین
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
|
|
||||||
|
<table class="table table-bordered table-hover text-center align-middle">
|
||||||
|
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>نام</th>
|
||||||
|
<th>نام خانوادگی</th>
|
||||||
|
<th>نام کاربری</th>
|
||||||
|
<th>موبایل</th>
|
||||||
|
<th>وضعیت</th>
|
||||||
|
<th>عملیات</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
@forelse($admins as $admin)
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $admin->first_name }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $admin->last_name }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $admin->username }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $admin->mobile }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
@if($admin->status)
|
||||||
|
<span class="badge bg-success">
|
||||||
|
فعال
|
||||||
|
</span>
|
||||||
|
@else
|
||||||
|
<span class="badge bg-danger">
|
||||||
|
غیرفعال
|
||||||
|
</span>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
<div class="d-flex justify-content-center gap-2">
|
||||||
|
|
||||||
|
<a href="{{ route('admin.admins.edit', $admin) }}"
|
||||||
|
class="btn btn-warning btn-sm">
|
||||||
|
ویرایش
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<form
|
||||||
|
action="{{ route('admin.admins.destroy', $admin) }}"
|
||||||
|
method="POST"
|
||||||
|
class="d-inline"
|
||||||
|
onsubmit="return confirm('آیا از حذف این ادمین مطمئن هستید؟')"
|
||||||
|
>
|
||||||
|
|
||||||
|
@csrf
|
||||||
|
@method('DELETE')
|
||||||
|
|
||||||
|
<button
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-danger btn-sm"
|
||||||
|
>
|
||||||
|
حذف
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
@empty
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td colspan="6">
|
||||||
|
ادمینی ثبت نشده است.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
@endforelse
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-3">
|
||||||
|
{{ $admins->links() }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endsection
|
||||||
@@ -1,278 +1,380 @@
|
|||||||
@extends('admin.layouts.app')
|
@extends('admin.layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="container">
|
<div class="container-fluid pt-4">
|
||||||
|
|
||||||
<div class="d-flex justify-content-between mb-4">
|
<div class="card custom-card">
|
||||||
|
|
||||||
<h4>
|
<div class="card-header d-flex justify-content-between align-items-center">
|
||||||
مدیریت پروازها
|
|
||||||
</h4>
|
|
||||||
|
|
||||||
<a href="{{ route('admin.flights.create') }}"
|
|
||||||
class="btn btn-primary">
|
|
||||||
|
|
||||||
ثبت پرواز جدید
|
|
||||||
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<form method="GET"
|
|
||||||
action="{{ route('admin.flights.index') }}"
|
|
||||||
class="mb-3">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-4">
|
|
||||||
|
|
||||||
<input type="text"
|
|
||||||
name="search"
|
|
||||||
class="form-control"
|
|
||||||
placeholder="جستجو..."
|
|
||||||
value="{{ request('search') }}">
|
|
||||||
|
|
||||||
|
<div class="card-title">
|
||||||
|
مدیریت پروازها
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a href="{{ route('admin.flights.create') }}"
|
||||||
|
class="btn btn-primary">
|
||||||
|
|
||||||
<div class="col-md-3">
|
ثبت پرواز جدید
|
||||||
|
|
||||||
<select name="type" class="form-control">
|
|
||||||
|
|
||||||
<option value="">
|
|
||||||
همه انواع
|
|
||||||
</option>
|
|
||||||
|
|
||||||
<option value="0"
|
|
||||||
@selected(request('type')=='0')>
|
|
||||||
داخلی
|
|
||||||
</option>
|
|
||||||
|
|
||||||
<option value="2"
|
|
||||||
@selected(request('type')=='2')>
|
|
||||||
خارجی
|
|
||||||
</option>
|
|
||||||
|
|
||||||
<option value="3"
|
|
||||||
@selected(request('type')=='3')>
|
|
||||||
چارتر
|
|
||||||
</option>
|
|
||||||
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-3">
|
|
||||||
|
|
||||||
<select name="sort"
|
|
||||||
class="form-control">
|
|
||||||
|
|
||||||
<option value="newest">
|
|
||||||
جدیدترین
|
|
||||||
</option>
|
|
||||||
|
|
||||||
<option value="price_asc">
|
|
||||||
ارزانترین
|
|
||||||
</option>
|
|
||||||
|
|
||||||
<option value="price_desc">
|
|
||||||
گرانترین
|
|
||||||
</option>
|
|
||||||
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
|
|
||||||
<button class="btn btn-dark w-100">
|
|
||||||
اعمال
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
<div class="card-body">
|
||||||
|
|
||||||
|
<form method="GET"
|
||||||
|
action="{{ route('admin.flights.index') }}"
|
||||||
|
class="mb-4">
|
||||||
|
|
||||||
|
<div class="row g-3">
|
||||||
|
|
||||||
|
<div class="col-md-4">
|
||||||
|
|
||||||
|
<input type="text"
|
||||||
|
name="search"
|
||||||
|
class="form-control"
|
||||||
|
placeholder="جستجو بر اساس ایرلاین، شماره پرواز یا مسیر..."
|
||||||
|
value="{{ request('search') }}">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
<table class="table table-bordered text-center">
|
<select name="type"
|
||||||
|
class="form-control">
|
||||||
|
|
||||||
<thead>
|
<option value="">
|
||||||
|
همه انواع
|
||||||
|
</option>
|
||||||
|
|
||||||
<tr>
|
<option value="0"
|
||||||
|
@selected(request('type') == '0')>
|
||||||
|
داخلی
|
||||||
|
</option>
|
||||||
|
|
||||||
<th>
|
<option value="2"
|
||||||
شناسه
|
@selected(request('type') == '2')>
|
||||||
</th>
|
خارجی
|
||||||
|
</option>
|
||||||
|
|
||||||
<th>
|
<option value="3"
|
||||||
ایرلاین
|
@selected(request('type') == '3')>
|
||||||
</th>
|
چارتر
|
||||||
|
</option>
|
||||||
|
|
||||||
<th>
|
</select>
|
||||||
تصویر
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
</div>
|
||||||
شماره پرواز
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
تاریخ حرکت
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
مسیر
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
نوع
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
قیمت
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
وضعیت
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
عملیات
|
|
||||||
</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
|
|
||||||
<tbody>
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
<select name="sort"
|
||||||
|
class="form-control">
|
||||||
|
|
||||||
|
<option value="newest"
|
||||||
|
@selected(request('sort', 'newest') == 'newest')>
|
||||||
|
جدیدترین
|
||||||
|
</option>
|
||||||
|
|
||||||
|
<option value="price_asc"
|
||||||
|
@selected(request('sort') == 'price_asc')>
|
||||||
|
ارزانترین
|
||||||
|
</option>
|
||||||
|
|
||||||
|
<option value="price_desc"
|
||||||
|
@selected(request('sort') == 'price_desc')>
|
||||||
|
گرانترین
|
||||||
|
</option>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@forelse($flights as $flight)
|
<div class="col-md-2">
|
||||||
|
|
||||||
<tr>
|
<button type="submit"
|
||||||
|
class="btn btn-dark w-100">
|
||||||
|
|
||||||
<td>
|
جستجو
|
||||||
{{ $loop->iteration }}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
|
|
||||||
<td>
|
|
||||||
{{ $flight->airline }}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
@if($flight->image)
|
|
||||||
<img src="{{ getImageUrl($flight->image) }}"
|
|
||||||
width="120">
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
|
|
||||||
|
|
||||||
<td>
|
|
||||||
{{ $flight->flight_number }}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
|
|
||||||
<td>
|
|
||||||
{{ $flight->origin }}
|
|
||||||
-
|
|
||||||
{{ $flight->destination }}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
|
|
||||||
<td>
|
|
||||||
@switch($flight->type)
|
|
||||||
|
|
||||||
@case(0)
|
|
||||||
داخلی
|
|
||||||
@break
|
|
||||||
|
|
||||||
@case(2)
|
|
||||||
خارجی
|
|
||||||
@break
|
|
||||||
|
|
||||||
@case(3)
|
|
||||||
چارتر
|
|
||||||
@break
|
|
||||||
|
|
||||||
@endswitch
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
{{ number_format($flight->price) }}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
|
|
||||||
<td>
|
|
||||||
{{ $flight->status }}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
|
|
||||||
<td>
|
|
||||||
|
|
||||||
<a href="{{ route('admin.flights.edit',$flight) }}"
|
|
||||||
class="btn btn-warning btn-sm">
|
|
||||||
|
|
||||||
ویرایش
|
|
||||||
|
|
||||||
</a>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form action="{{ route('admin.flights.destroy',$flight) }}"
|
|
||||||
method="POST"
|
|
||||||
class="d-inline">
|
|
||||||
|
|
||||||
@csrf
|
|
||||||
@method('DELETE')
|
|
||||||
|
|
||||||
|
|
||||||
<button class="btn btn-danger btn-sm"
|
|
||||||
onclick="return confirm('حذف شود؟')">
|
|
||||||
|
|
||||||
حذف
|
|
||||||
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</form>
|
</div>
|
||||||
|
|
||||||
</td>
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
<div class="table-responsive">
|
||||||
|
|
||||||
|
<table class="table table-bordered table-hover text-center align-middle">
|
||||||
|
|
||||||
|
<thead>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
شناسه
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
ایرلاین
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
تصویر
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
شماره پرواز
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
تاریخ حرکت
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
مسیر
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
نوع
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
قیمت
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
وضعیت
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
عملیات
|
||||||
|
</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
|
||||||
@empty
|
<tbody>
|
||||||
|
|
||||||
<tr>
|
@forelse($flights as $flight)
|
||||||
|
|
||||||
<td colspan="8">
|
<tr>
|
||||||
موردی یافت نشد
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
<td>
|
||||||
|
{{ $flight->id }}
|
||||||
@endforelse
|
</td>
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
<td>
|
||||||
|
{{ $flight->airline }}
|
||||||
</table>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
{{ $flights->links() }}
|
<td>
|
||||||
|
|
||||||
|
@if($flight->image)
|
||||||
|
|
||||||
|
<img
|
||||||
|
src="{{ getImageUrl($flight->image) }}"
|
||||||
|
alt="{{ $flight->airline }}"
|
||||||
|
width="100"
|
||||||
|
height="60"
|
||||||
|
style="object-fit: cover; border-radius: 6px;"
|
||||||
|
>
|
||||||
|
|
||||||
|
@else
|
||||||
|
|
||||||
|
<span class="text-muted">
|
||||||
|
بدون تصویر
|
||||||
|
</span>
|
||||||
|
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ $flight->flight_number }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td>
|
||||||
|
|
||||||
|
{{ $flight->departure_date ?? '-' }}
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td>
|
||||||
|
|
||||||
|
{{ $flight->origin }}
|
||||||
|
|
||||||
|
<span class="mx-1">
|
||||||
|
←
|
||||||
|
</span>
|
||||||
|
|
||||||
|
{{ $flight->destination }}
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td>
|
||||||
|
|
||||||
|
@switch($flight->type)
|
||||||
|
|
||||||
|
@case(0)
|
||||||
|
|
||||||
|
<span class="badge bg-primary">
|
||||||
|
داخلی
|
||||||
|
</span>
|
||||||
|
|
||||||
|
@break
|
||||||
|
|
||||||
|
@case(2)
|
||||||
|
|
||||||
|
<span class="badge bg-info">
|
||||||
|
خارجی
|
||||||
|
</span>
|
||||||
|
|
||||||
|
@break
|
||||||
|
|
||||||
|
@case(3)
|
||||||
|
|
||||||
|
<span class="badge bg-warning text-dark">
|
||||||
|
چارتر
|
||||||
|
</span>
|
||||||
|
|
||||||
|
@break
|
||||||
|
|
||||||
|
@default
|
||||||
|
|
||||||
|
<span class="badge bg-secondary">
|
||||||
|
نامشخص
|
||||||
|
</span>
|
||||||
|
|
||||||
|
@endswitch
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td>
|
||||||
|
|
||||||
|
{{ number_format($flight->price) }}
|
||||||
|
|
||||||
|
<span class="text-muted">
|
||||||
|
تومان
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td>
|
||||||
|
|
||||||
|
@if($flight->status)
|
||||||
|
|
||||||
|
<span class="badge bg-success">
|
||||||
|
فعال
|
||||||
|
</span>
|
||||||
|
|
||||||
|
@else
|
||||||
|
|
||||||
|
<span class="badge bg-danger">
|
||||||
|
غیرفعال
|
||||||
|
</span>
|
||||||
|
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-center gap-1">
|
||||||
|
|
||||||
|
<a href="{{ route('admin.flights.edit', $flight) }}"
|
||||||
|
class="btn btn-warning btn-sm">
|
||||||
|
|
||||||
|
ویرایش
|
||||||
|
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<form
|
||||||
|
action="{{ route('admin.flights.destroy', $flight) }}"
|
||||||
|
method="POST"
|
||||||
|
class="d-inline"
|
||||||
|
>
|
||||||
|
|
||||||
|
@csrf
|
||||||
|
@method('DELETE')
|
||||||
|
|
||||||
|
<button
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-danger btn-sm"
|
||||||
|
onclick="return confirm('آیا از حذف این پرواز مطمئن هستید؟')"
|
||||||
|
>
|
||||||
|
|
||||||
|
حذف
|
||||||
|
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
@empty
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td colspan="10"
|
||||||
|
class="text-center py-4">
|
||||||
|
|
||||||
|
<span class="text-muted">
|
||||||
|
هیچ پروازی یافت نشد.
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
@endforelse
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@if($flights->hasPages())
|
||||||
|
|
||||||
|
<div class="mt-4">
|
||||||
|
|
||||||
|
{{ $flights->withQueryString()->links() }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
<link rel="stylesheet" href="{{asset('assets/admin/persian-datepicker.min.css')}}">
|
<link rel="stylesheet" href="{{asset('assets/admin/persian-datepicker.min.css')}}">
|
||||||
<link href="{{asset('assets/bootstrap-5.3.8-examples/assets/dist/css/bootstrap.rtl.min.css')}}" rel="stylesheet">
|
<link href="{{asset('assets/bootstrap-5.3.8-examples/assets/dist/css/bootstrap.rtl.min.css')}}" rel="stylesheet">
|
||||||
<link href="{{ asset('assets/admin/css/style.css') }}" rel="stylesheet">
|
<link href="{{ asset('assets/admin/css/style.css') }}" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="{{ asset('assets/css/header.css') }}">
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +1,31 @@
|
|||||||
<nav class="navbar navbar-light bg-light px-4 shadow-sm">
|
<nav class="navbar navbar-light px-4 admin-navbar">
|
||||||
|
|
||||||
|
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
داشبورد مدیریت
|
داشبورد مدیریت
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="breadcrumb-wrapper">
|
<div class="breadcrumb-wrapper">
|
||||||
|
|
||||||
@yield('breadcrumb')
|
@yield('breadcrumb')
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="admin-user-area">
|
||||||
|
|
||||||
<div>
|
<span class="admin-user">
|
||||||
|
|
||||||
<span class="me-3">
|
|
||||||
مدیر
|
مدیر
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<form action="{{ route('admin.auth.logout') }}"
|
||||||
|
method="POST"
|
||||||
|
class="logout-form">
|
||||||
|
|
||||||
<a href="#"
|
@csrf
|
||||||
class="btn btn-danger btn-sm">
|
|
||||||
|
|
||||||
خروج
|
<button type="submit" class="logout-btn">
|
||||||
|
خروج
|
||||||
|
</button>
|
||||||
|
|
||||||
</a>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
<div>
|
|
||||||
<!-- If you do not have a consistent goal in life, you can not live it in a consistent way. - Marcus Aurelius -->
|
|
||||||
</div>
|
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
|
|
||||||
<button class="btn btn-dark w-100">
|
<button class="btn btn-dark w-100">
|
||||||
اعمال
|
جستجو
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<link rel="stylesheet" href="{{ asset('assets/css/register_login.css') }}">
|
||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
@extends('layouts.app')
|
<link rel="stylesheet" href="{{ asset('assets/css/register_login.css') }}">
|
||||||
|
|
||||||
|
@extends('layouts.app')
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
|
||||||
<div class="theme-hero-area-bg-wrap">
|
<div class="theme-hero-area-bg-wrap">
|
||||||
<div class="theme-hero-area-bg"
|
<div class="theme-hero-area-bg"
|
||||||
style="background-image:url({{ asset('img/adult-book-business-cactus-297755_1500x800.jpg') }});">
|
style="background-image:url({{ asset('img/adult-book-business-cactus-297755_1500x800.jpg') }});">
|
||||||
@@ -21,8 +24,7 @@
|
|||||||
|
|
||||||
<div class="theme-login theme-login-white">
|
<div class="theme-login theme-login-white">
|
||||||
|
|
||||||
{{-- Header --}}
|
<div class="theme-login-header">
|
||||||
<div class="theme-login-header">
|
|
||||||
|
|
||||||
<h1 class="theme-login-title">
|
<h1 class="theme-login-title">
|
||||||
ثبت نام
|
ثبت نام
|
||||||
@@ -34,9 +36,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="theme-login-box">
|
||||||
{{-- Form --}}
|
|
||||||
<div class="theme-login-box">
|
|
||||||
|
|
||||||
<div class="theme-login-box-inner">
|
<div class="theme-login-box-inner">
|
||||||
|
|
||||||
@@ -49,9 +49,7 @@
|
|||||||
|
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
|
<div class="mb-4">
|
||||||
{{-- First Name --}}
|
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="first_name"
|
for="first_name"
|
||||||
@@ -82,8 +80,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Last Name --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="last_name"
|
for="last_name"
|
||||||
@@ -114,8 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- National Code --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="national_code"
|
for="national_code"
|
||||||
@@ -147,8 +143,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Gender --}}
|
<div class="row mb-4" data-gutter="10">
|
||||||
<div class="row mb-4" data-gutter="10">
|
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
@@ -192,8 +187,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Marital Status --}}
|
<div class="col-md-6">
|
||||||
<div class="col-md-6">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
class="block text-sm font-medium text-gray-500 dark:text-gray-300 mb-2"
|
class="block text-sm font-medium text-gray-500 dark:text-gray-300 mb-2"
|
||||||
@@ -244,8 +238,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Spouse Name --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="spouse_name"
|
for="spouse_name"
|
||||||
@@ -275,8 +268,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Mobile --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="mobile"
|
for="mobile"
|
||||||
@@ -309,8 +301,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Email --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="email"
|
for="email"
|
||||||
@@ -342,8 +333,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Profile Image --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="profile_image"
|
for="profile_image"
|
||||||
@@ -373,8 +363,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Username --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="username"
|
for="username"
|
||||||
@@ -405,8 +394,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Province --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="province_id"
|
for="province_id"
|
||||||
@@ -451,8 +439,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- City --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="city_id"
|
for="city_id"
|
||||||
@@ -487,8 +474,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Password --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="password"
|
for="password"
|
||||||
@@ -518,8 +504,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Password Confirmation --}}
|
<div class="mb-4">
|
||||||
<div class="mb-4">
|
|
||||||
|
|
||||||
<label
|
<label
|
||||||
for="password_confirmation"
|
for="password_confirmation"
|
||||||
@@ -543,8 +528,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{-- Submit --}}
|
<div class="mt-6">
|
||||||
<div class="mt-6">
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
@@ -558,8 +542,7 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
{{-- Login --}}
|
<p class="mt-8 text-center text-sm/6 text-gray-500 dark:text-gray-300">
|
||||||
<p class="mt-8 text-center text-sm/6 text-gray-500 dark:text-gray-300">
|
|
||||||
|
|
||||||
حساب کاربری دارید؟
|
حساب کاربری دارید؟
|
||||||
|
|
||||||
|
|||||||
@@ -1,235 +1,3 @@
|
|||||||
<style>
|
|
||||||
.flight-image {
|
|
||||||
height: 260px;
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.flight-image img {
|
|
||||||
transition: .6s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.card:hover .flight-image img {
|
|
||||||
transform: scale(1.08);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.card.border-0.shadow-sm.rounded-4.overflow-hidden {
|
|
||||||
|
|
||||||
border-radius: 24px !important;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
background: #fff;
|
|
||||||
transition: .4s ease;
|
|
||||||
border: 1px solid #f1f1f1 !important;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.card.border-0.shadow-sm.rounded-4.overflow-hidden:hover {
|
|
||||||
|
|
||||||
transform: translateY(-8px);
|
|
||||||
|
|
||||||
box-shadow:
|
|
||||||
0 20px 45px rgba(0,0,0,.12)!important;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.card form {
|
|
||||||
|
|
||||||
position:absolute;
|
|
||||||
top:18px;
|
|
||||||
left:18px;
|
|
||||||
z-index:5;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.card form button {
|
|
||||||
|
|
||||||
border-radius:50px;
|
|
||||||
|
|
||||||
background:rgba(255,255,255,.9);
|
|
||||||
|
|
||||||
backdrop-filter:blur(8px);
|
|
||||||
|
|
||||||
border:none;
|
|
||||||
|
|
||||||
padding:10px 18px;
|
|
||||||
|
|
||||||
color:#e63946;
|
|
||||||
|
|
||||||
font-weight:600;
|
|
||||||
|
|
||||||
box-shadow:
|
|
||||||
0 8px 20px rgba(0,0,0,.15);
|
|
||||||
|
|
||||||
transition:.3s;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.card form button:hover {
|
|
||||||
|
|
||||||
background:#e63946;
|
|
||||||
|
|
||||||
color:white;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.flight-badge {
|
|
||||||
|
|
||||||
position:absolute;
|
|
||||||
|
|
||||||
right:20px;
|
|
||||||
|
|
||||||
bottom:20px;
|
|
||||||
|
|
||||||
background:white;
|
|
||||||
|
|
||||||
color:#0d6efd;
|
|
||||||
|
|
||||||
padding:8px 20px;
|
|
||||||
|
|
||||||
border-radius:50px;
|
|
||||||
|
|
||||||
font-size:14px;
|
|
||||||
|
|
||||||
font-weight:700;
|
|
||||||
|
|
||||||
box-shadow:
|
|
||||||
0 8px 20px rgba(0,0,0,.15);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.flight-image:after {
|
|
||||||
|
|
||||||
content:"";
|
|
||||||
|
|
||||||
position:absolute;
|
|
||||||
|
|
||||||
inset:0;
|
|
||||||
|
|
||||||
background:
|
|
||||||
linear-gradient(
|
|
||||||
transparent,
|
|
||||||
rgba(0,0,0,.45)
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-body {
|
|
||||||
|
|
||||||
padding:28px !important;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.card-body h5 {
|
|
||||||
|
|
||||||
font-size:22px;
|
|
||||||
|
|
||||||
font-weight:800 !important;
|
|
||||||
|
|
||||||
color:#222;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.route {
|
|
||||||
|
|
||||||
display:flex;
|
|
||||||
|
|
||||||
justify-content:center;
|
|
||||||
|
|
||||||
align-items:center;
|
|
||||||
|
|
||||||
gap:15px;
|
|
||||||
|
|
||||||
margin:25px 0;
|
|
||||||
|
|
||||||
font-weight:700;
|
|
||||||
|
|
||||||
font-size:16px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.route .line {
|
|
||||||
|
|
||||||
width:55px;
|
|
||||||
|
|
||||||
height:2px;
|
|
||||||
|
|
||||||
background:#dbe7ff;
|
|
||||||
|
|
||||||
position:relative;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.route .line:after {
|
|
||||||
|
|
||||||
content:"✈";
|
|
||||||
|
|
||||||
position:absolute;
|
|
||||||
|
|
||||||
top:50%;
|
|
||||||
left:50%;
|
|
||||||
|
|
||||||
transform:translate(-50%,-50%);
|
|
||||||
|
|
||||||
background:white;
|
|
||||||
|
|
||||||
padding:5px;
|
|
||||||
|
|
||||||
color:#0d6efd;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.card-body strong {
|
|
||||||
|
|
||||||
font-size:20px;
|
|
||||||
|
|
||||||
color:#0d6efd;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-body .btn-primary {
|
|
||||||
|
|
||||||
background:linear-gradient(
|
|
||||||
135deg,
|
|
||||||
#0062ff,
|
|
||||||
#00b7ff
|
|
||||||
);
|
|
||||||
|
|
||||||
border:none;
|
|
||||||
|
|
||||||
padding:11px 30px;
|
|
||||||
|
|
||||||
font-weight:700;
|
|
||||||
|
|
||||||
box-shadow:
|
|
||||||
0 10px 25px rgba(0,98,255,.3);
|
|
||||||
|
|
||||||
transition:.3s;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.card-body .btn-primary:hover {
|
|
||||||
|
|
||||||
transform:translateY(-3px);
|
|
||||||
|
|
||||||
box-shadow:
|
|
||||||
0 15px 30px rgba(0,98,255,.4);
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="card border-0 shadow-sm rounded-4 overflow-hidden h-100">
|
<div class="card border-0 shadow-sm rounded-4 overflow-hidden h-100">
|
||||||
<form action="{{ route('users.favorite.store') }}" method="POST">
|
<form action="{{ route('users.favorite.store') }}" method="POST">
|
||||||
|
|||||||
@@ -105,7 +105,6 @@
|
|||||||
{{settings('phone')}}
|
{{settings('phone')}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{{settings('address')}}
|
{{settings('address')}}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -27,12 +27,6 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
|
||||||
<a href="#">
|
|
||||||
درباره ما
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -53,12 +53,7 @@
|
|||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div class="mt-4">
|
{{$tours->links()}}
|
||||||
|
|
||||||
{{ $tours->links() }}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ Route::prefix('admin')->name('admin.')->group(function (){
|
|||||||
Route::get('/','login')->name('index');
|
Route::get('/','login')->name('index');
|
||||||
Route::post('/','loginPost')->name('post');
|
Route::post('/','loginPost')->name('post');
|
||||||
});
|
});
|
||||||
Route::get('logout','logout')->middleware('auth:admin')
|
Route::post('logout','logout')->middleware('auth:admin')
|
||||||
->name('logout');
|
->name('logout');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user