feat: make index page, header, and footer dynamic
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
</div>
|
||||
<ul class="user-profile-sidebar-list">
|
||||
<li><a class="active" href="{{route('accounts.profile')}}"><i class="far fa-user"></i> نمایه من</a></li>
|
||||
<li><a href="profile-booking.html"><i class="far fa-shopping-bag"></i> رزرو من</a></li>
|
||||
<li><a href="{{route('accounts.favorites.index')}}"><i class="far fa-heart"></i> علاقه مندی های من</a></li>
|
||||
<li><a href="{{route('accounts.comments')}}"><i class="fas fa-comments"></i> کامنتهای من</a></li>
|
||||
<li><a href="{{route('accounts.edit-profile.index')}}"><i class="far fa-cog"></i> ویرایش حساب کاربری</a></li>
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
<div class="testimonial-single" dir="rtl">
|
||||
<div class="testimonial-content" dir="rtl">
|
||||
<div class="testimonial-author-img" dir="rtl">
|
||||
<img src="assets/img/testimonial/01.jpg" alt>
|
||||
<img src="{{asset('assets/img/testimonial/01.jpg')}}" alt>
|
||||
</div>
|
||||
<div class="testimonial-author-info" dir="rtl">
|
||||
<h4>سیلویا اچ گرین</h4>
|
||||
@@ -331,7 +331,7 @@
|
||||
<p>لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان
|
||||
گرافیک است. چاپگرها و متون بلکه روزنامه تکنولوژی مورد نیاز است.</p>
|
||||
<div class="testimonial-quote-icon" dir="rtl">
|
||||
<img src="assets/img/icon/quote.svg" alt>
|
||||
<img src="{{asset('assets/img/icon/quote.svg')}}" alt>
|
||||
</div>
|
||||
</div>
|
||||
<div class="testimonial-rate" dir="rtl">
|
||||
@@ -345,7 +345,7 @@
|
||||
<div class="testimonial-single" dir="rtl">
|
||||
<div class="testimonial-content" dir="rtl">
|
||||
<div class="testimonial-author-img" dir="rtl">
|
||||
<img src="assets/img/testimonial/02.jpg" alt>
|
||||
<img src="{{asset('assets/img/testimonial/02.jpg')}}" alt>
|
||||
</div>
|
||||
<div class="testimonial-author-info" dir="rtl">
|
||||
<h4>گوردو نواک</h4>
|
||||
@@ -356,7 +356,7 @@
|
||||
<p>لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان
|
||||
گرافیک است. چاپگرها و متون بلکه روزنامه تکنولوژی مورد نیاز است.</p>
|
||||
<div class="testimonial-quote-icon" dir="rtl">
|
||||
<img src="assets/img/icon/quote.svg" alt>
|
||||
<img src="{{asset('assets/img/icon/quote.svg')}}" alt>
|
||||
</div>
|
||||
</div>
|
||||
<div class="testimonial-rate" dir="rtl">
|
||||
@@ -370,7 +370,7 @@
|
||||
<div class="testimonial-single" dir="rtl">
|
||||
<div class="testimonial-content" dir="rtl">
|
||||
<div class="testimonial-author-img" dir="rtl">
|
||||
<img src="assets/img/testimonial/03.jpg" alt>
|
||||
<img src="{{asset('assets/img/testimonial/03.jpg')}}" alt>
|
||||
</div>
|
||||
<div class="testimonial-author-info" dir="rtl">
|
||||
<h4>مایکل جکسون</h4>
|
||||
@@ -381,7 +381,7 @@
|
||||
<p>لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان
|
||||
گرافیک است. چاپگرها و متون بلکه روزنامه تکنولوژی مورد نیاز است.</p>
|
||||
<div class="testimonial-quote-icon" dir="rtl">
|
||||
<img src="assets/img/icon/quote.svg" alt>
|
||||
<img src="{{asset('assets/img/icon/quote.svg')}}" alt>
|
||||
</div>
|
||||
</div>
|
||||
<div class="testimonial-rate" dir="rtl">
|
||||
@@ -395,7 +395,7 @@
|
||||
<div class="testimonial-single" dir="rtl">
|
||||
<div class="testimonial-content" dir="rtl">
|
||||
<div class="testimonial-author-img" dir="rtl">
|
||||
<img src="assets/img/testimonial/04.jpg" alt>
|
||||
<img src="{{asset('assets/img/testimonial/04.jpg')}}" alt>
|
||||
</div>
|
||||
<div class="testimonial-author-info" dir="rtl">
|
||||
<h4>برایان جیمز</h4>
|
||||
@@ -406,7 +406,7 @@
|
||||
<p>لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان
|
||||
گرافیک است. چاپگرها و متون بلکه روزنامه تکنولوژی مورد نیاز است.</p>
|
||||
<div class="testimonial-quote-icon" dir="rtl">
|
||||
<img src="assets/img/icon/quote.svg" alt>
|
||||
<img src="{{asset('assets/img/icon/quote.svg')}}" alt>
|
||||
</div>
|
||||
</div>
|
||||
<div class="testimonial-rate" dir="rtl">
|
||||
@@ -420,7 +420,7 @@
|
||||
<div class="testimonial-single" dir="rtl">
|
||||
<div class="testimonial-content" dir="rtl">
|
||||
<div class="testimonial-author-img" dir="rtl">
|
||||
<img src="assets/img/testimonial/05.jpg" alt>
|
||||
<img src="{{asset('assets/img/testimonial/05.jpg')}}" alt>
|
||||
</div>
|
||||
<div class="testimonial-author-info" dir="rtl">
|
||||
<h4>بندیکت کمبریچ</h4>
|
||||
@@ -431,7 +431,7 @@
|
||||
<p>لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان
|
||||
گرافیک است. چاپگرها و متون بلکه روزنامه تکنولوژی مورد نیاز است.</p>
|
||||
<div class="testimonial-quote-icon" dir="rtl">
|
||||
<img src="assets/img/icon/quote.svg" alt>
|
||||
<img src="{{asset('assets/img/icon/quote.svg')}}" alt>
|
||||
</div>
|
||||
</div>
|
||||
<div class="testimonial-rate" dir="rtl">
|
||||
@@ -463,7 +463,7 @@
|
||||
<div class="col-md-6 col-lg-4">
|
||||
<div class="blog-item wow fadeInUp" data-wow-duration="1s" data-wow-delay=".25s">
|
||||
<div class="blog-item-img">
|
||||
<img src="assets/img/blog/01.jpg" alt="Thumb">
|
||||
<img src="{{asset('assets/img/blog/01.jpg')}}" alt="Thumb">
|
||||
</div>
|
||||
<div class="blog-item-info">
|
||||
<div class="blog-item-meta">
|
||||
@@ -483,7 +483,7 @@
|
||||
<div class="col-md-6 col-lg-4">
|
||||
<div class="blog-item wow fadeInUp" data-wow-duration="1s" data-wow-delay=".50s">
|
||||
<div class="blog-item-img">
|
||||
<img src="assets/img/blog/02.jpg" alt="Thumb">
|
||||
<img src="{{asset('assets/img/blog/02.jpg')}}" alt="Thumb">
|
||||
</div>
|
||||
<div class="blog-item-info">
|
||||
<div class="blog-item-meta">
|
||||
@@ -503,7 +503,7 @@
|
||||
<div class="col-md-6 col-lg-4">
|
||||
<div class="blog-item wow fadeInUp" data-wow-duration="1s" data-wow-delay=".75s">
|
||||
<div class="blog-item-img">
|
||||
<img src="assets/img/blog/03.jpg" alt="Thumb">
|
||||
<img src="{{asset('assets/img/blog/03.jpg')}}" alt="Thumb">
|
||||
</div>
|
||||
<div class="blog-item-info">
|
||||
<div class="blog-item-meta">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="col-md-6 col-lg-3">
|
||||
<div class="footer-widget-box about-us">
|
||||
<a href="{{route('index')}}" class="footer-logo">
|
||||
<img src="assets/img/logo/logo-dark.png" alt>
|
||||
<img src="{{asset('assets/img/logo/logo-dark.png')}}" alt>
|
||||
</a>
|
||||
<p class="mb-4">
|
||||
ما تغییرات زیادی در معابر موجود هستیم اما اکثریت دچار تغییر شده اند
|
||||
@@ -93,11 +93,11 @@
|
||||
<div class="footer-payment-method">
|
||||
<h6> میپذیریم:</h6>
|
||||
<div class="payment-method-img">
|
||||
<img src="assets/img/payment/paypal.svg" alt>
|
||||
<img src="assets/img/payment/mastercard.svg" alt>
|
||||
<img src="assets/img/payment/visa.svg" alt>
|
||||
<img src="assets/img/payment/discover.svg" alt>
|
||||
<img src="assets/img/payment/american-express.svg" alt>
|
||||
<img src="{{asset('assets/img/payment/paypal.svg')}}" alt>
|
||||
<img src="{{asset('assets/img/payment/mastercard.svg')}}" alt>
|
||||
<img src="{{asset('assets/img/payment/visa.svg')}}" alt>
|
||||
<img src="{{asset('assets/img/payment/discover.svg')}}" alt>
|
||||
<img src="{{asset('assets/img/payment/american-express.svg')}}" alt>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
<?php $__env->startSection('breadcrumb'); ?>
|
||||
<div>
|
||||
<div>
|
||||
<h1 class="page-title fw-medium fs-18 mb-2">
|
||||
ویرایش کاربر
|
||||
<?php echo e(getUserFullName($user)); ?>
|
||||
|
||||
</h1>
|
||||
<div class="">
|
||||
<nav>
|
||||
<ol class="breadcrumb mb-0">
|
||||
<li class="breadcrumb-item"><a href="javascript:void(0);">مدیریت کاربران</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">ویرایش کاربر</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<div class="container-fluid pt-4">
|
||||
<?php if(session('success')): ?>
|
||||
<span style="color: green">
|
||||
<?php echo e(session('success')); ?>
|
||||
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
|
||||
<form
|
||||
action="<?php echo e(route('admin.users.update', $user)); ?>"
|
||||
method="POST"
|
||||
enctype="multipart/form-data"
|
||||
>
|
||||
<?php echo csrf_field(); ?>
|
||||
<?php echo method_field('PUT'); ?>
|
||||
|
||||
<div class="card custom-card">
|
||||
<div class="card-header">
|
||||
<div class="card-title">ویرایش کاربر</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<!-- User Fields -->
|
||||
<div class="row gy-3">
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">نام</label>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
name="first_name"
|
||||
value="<?php echo e(old('first_name' , $user->first_name)); ?>"
|
||||
placeholder="نام را وارد کنید"
|
||||
>
|
||||
<?php $__errorArgs = ['first_name'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">نام خانوادگی</label>
|
||||
<input type="text" class="form-control" name="last_name"
|
||||
value="<?php echo e(old('last_name' , $user->last_name)); ?>"
|
||||
placeholder="نام خانوادگی را وارد کنید">
|
||||
<?php $__errorArgs = ['last_name'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">ایمیل</label>
|
||||
<input type="email" class="form-control" name="email"
|
||||
value="<?php echo e(old('email' , $user->email)); ?>"
|
||||
placeholder="ایمیل را وارد کنید">
|
||||
<?php $__errorArgs = ['email'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">شماره موبایل</label>
|
||||
<input type="text" class="form-control" name="mobile"
|
||||
value="<?php echo e(old('mobile' , $user->mobile)); ?>"
|
||||
placeholder="شماره موبایل را وارد کنید">
|
||||
<?php $__errorArgs = ['mobile'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">رمز عبور (در صورت تغییر)</label>
|
||||
<input type="text" class="form-control" name="password"
|
||||
placeholder="رمز عبور را وارد کنید">
|
||||
<?php $__errorArgs = ['password'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer text-end">
|
||||
<button type="submit" class="btn btn-primary">ذخیره تغییرات</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/admin/users/edit.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,241 @@
|
||||
<?php $__env->startSection('breadcrumb'); ?>
|
||||
<div>
|
||||
<h1 class="page-title fw-medium fs-18 mb-2">ویرایش مدیر</h1>
|
||||
<div>
|
||||
<nav>
|
||||
<ol class="breadcrumb mb-0">
|
||||
<li class="breadcrumb-item"><a href="<?php echo e(route('admin.admins.index')); ?>">مدیران</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">ویرایش مدیر</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<div class="container-fluid pt-4">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php if(session('success')): ?>
|
||||
<span style="color: green"><?php echo e(session('success')); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if(session('error')): ?>
|
||||
<span style="color: green"><?php echo e(session('error')); ?></span>
|
||||
<?php endif; ?>
|
||||
<div class="col-xl-12">
|
||||
<form action="<?php echo e(route('admin.admins.update' , $admin->id)); ?>" method="POST"
|
||||
enctype="multipart/form-data">
|
||||
<?php echo csrf_field(); ?>
|
||||
<?php echo method_field('PUT'); ?>
|
||||
<div class="card custom-card">
|
||||
<div class="card-header">
|
||||
<div class="card-title">ویرایش مدیر</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row gy-3">
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">نام</label>
|
||||
<input type="text" class="form-control" name="first_name"
|
||||
value="<?php echo e(old('first_name' , $admin->first_name)); ?>"
|
||||
placeholder="نام را وارد کنید">
|
||||
<?php $__errorArgs = ['first_name'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">نام خانوادگی</label>
|
||||
<input type="text" class="form-control" name="last_name"
|
||||
value="<?php echo e(old('last_name' , $admin->last_name)); ?>"
|
||||
placeholder="نام خانوادگی را وارد کنید">
|
||||
<?php $__errorArgs = ['last_name'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">نام کاربری</label>
|
||||
<input type="text" class="form-control" name="username"
|
||||
value="<?php echo e(old('username' , $admin->username)); ?>" placeholder="نام کاربری">
|
||||
<?php $__errorArgs = ['username'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">ایمیل</label>
|
||||
<input type="email" class="form-control" name="email"
|
||||
value="<?php echo e(old('email' , $admin?->email)); ?>"
|
||||
placeholder="ایمیل را وارد کنید">
|
||||
<?php $__errorArgs = ['email'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">رمز عبور (در صورت تغییر)</label>
|
||||
<input type="password" class="form-control" name="password"
|
||||
placeholder="رمز عبور را وارد کنید">
|
||||
<?php $__errorArgs = ['password'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<?php if($canEditSensitiveFields): ?>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">نوع مدیر</label>
|
||||
|
||||
<select class="form-control" name="is_super">
|
||||
<option value="1" <?php if(old('is_super', $admin->is_super ? '1' : '0') == '1'): echo 'selected'; endif; ?>>
|
||||
مدیر کل
|
||||
</option>
|
||||
|
||||
<option value="0" <?php if(old('is_super', $admin->is_super ? '1' : '0') == '0'): echo 'selected'; endif; ?>>
|
||||
عادی
|
||||
</option>
|
||||
</select>
|
||||
|
||||
<?php $__errorArgs = ['is_super'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">وضعیت</label>
|
||||
|
||||
<select class="form-control" name="status">
|
||||
<?php $__currentLoopData = $adminStatuses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($status->value); ?>"
|
||||
<?php if(old('status', $admin->status->value) == $status->value): echo 'selected'; endif; ?>>
|
||||
<?php echo e($status->label()); ?>
|
||||
|
||||
</option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</select>
|
||||
|
||||
<?php $__errorArgs = ['status'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
|
||||
<?php elseif($showReadonlySensitiveFields): ?>
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">نوع مدیر</label>
|
||||
|
||||
<div class="form-control bg-light">
|
||||
مدیر کل
|
||||
</div>
|
||||
|
||||
<small class="text-muted">
|
||||
شما نمیتوانید نوع دسترسی خودتان را تغییر دهید.
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-6">
|
||||
<label class="form-label">وضعیت</label>
|
||||
|
||||
<div class="form-control bg-light">
|
||||
<?php echo e($admin->status->label()); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<small class="text-muted">
|
||||
شما نمیتوانید وضعیت حساب خودتان را تغییر دهید.
|
||||
</small>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card-avatar">
|
||||
<div class="text-center">
|
||||
<label class="form-label d-block fw-semibold">تصویر پروفایل</label>
|
||||
<?php if($admin->avatar?->file_id): ?>
|
||||
<label class="avatar-picker" id="avatarPreview"
|
||||
style="background-image: url('<?php echo e(getFileUrl($admin->avatar->file_id)); ?>')">
|
||||
<input type="file" name="image" accept="image/*"
|
||||
onchange="previewAvatar(this)">
|
||||
</label>
|
||||
<?php else: ?>
|
||||
<label class="avatar-picker"
|
||||
id="avatarPreview"
|
||||
style="background-image: url('<?php echo e(asset('assets/admin/images/faces/DefaultAvatar.jpg')); ?>')">
|
||||
<input type="file"
|
||||
name="image"
|
||||
accept="image/*"
|
||||
onchange="previewAvatar(this)">
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php $__errorArgs = ['image'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<span style="color: red"><?php echo e($message); ?></span>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
|
||||
<div class="card-footer text-end">
|
||||
<button type="submit" class="btn btn-primary">ذخیره تغییرات</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/admin/admins/edit.blade.php ENDPATH**/ ?>
|
||||
@@ -96,27 +96,6 @@
|
||||
<?php endif; ?>
|
||||
<!-- End::slide -->
|
||||
|
||||
<!-- Start::slide -->
|
||||
<li class="slide">
|
||||
<a href="#"
|
||||
class="side-menu__item ">
|
||||
|
||||
<i class="ri-settings-3-line side-menu__icon"></i>
|
||||
<span class="side-menu__label"> تنظیمات سایت</span>
|
||||
</a>
|
||||
</li>
|
||||
<!-- End::slide -->
|
||||
|
||||
<!-- Start::slide -->
|
||||
<li class="slide">
|
||||
<a href="#"
|
||||
class="side-menu__item ">
|
||||
|
||||
<i class="ri-user-settings-line side-menu__icon"></i>
|
||||
<span class="side-menu__label">پروفایل من</span>
|
||||
</a>
|
||||
</li>
|
||||
<!-- End::slide -->
|
||||
|
||||
<!-- Start::slide -->
|
||||
<li class="slide">
|
||||
|
||||
@@ -224,11 +224,6 @@
|
||||
|
||||
<td>
|
||||
<div class="hstack gap-2 fs-15">
|
||||
<a href="<?php echo e(route('admin.flights.show', $flight->id)); ?>"
|
||||
class="btn btn-info-light btn-icon btn-sm"
|
||||
title="مشاهده">
|
||||
<i class="ri-eye-line"></i>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo e(route('admin.flights.edit', $flight->id)); ?>"
|
||||
class="btn btn-secondary-light btn-icon btn-sm"
|
||||
|
||||
@@ -0,0 +1,181 @@
|
||||
<?php $__env->startSection('title' , 'علاقه مندی های من'); ?>
|
||||
|
||||
<?php $__env->startSection('account-content'); ?>
|
||||
<div class="user-profile-wrapper">
|
||||
|
||||
<?php if(session('success')): ?>
|
||||
<div class="col-lg-12 mb-3">
|
||||
<div class="alert alert-success">
|
||||
<?php echo e(session('success')); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(session('error')): ?>
|
||||
<div class="col-lg-12 mb-3">
|
||||
<div class="alert alert-danger">
|
||||
<?php echo e(session('error')); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="user-profile-card">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h4 class="user-profile-card-title mb-0">
|
||||
<i class="far fa-heart text-danger me-1"></i>
|
||||
علاقهمندیهای من
|
||||
</h4>
|
||||
|
||||
<span class="badge bg-primary">
|
||||
<?php echo e(method_exists($favorites, 'total') ? $favorites->total() : $favorites->count()); ?> مورد
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="row mt-30">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $favorites; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $favorite): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
|
||||
<?php if($favorite->tour): ?>
|
||||
<div class="col-md-6 col-lg-4 mb-4">
|
||||
<div class="hotel-item h-100 d-flex flex-column justify-content-between">
|
||||
<div class="hotel-img position-relative">
|
||||
<span class="badge bg-info position-absolute top-0 start-0 m-2">تور</span>
|
||||
<?php if($favorite->tour->coverImage?->file): ?>
|
||||
<img src="<?php echo e(getFileUrl($tour->coverImage->file_id)); ?>"
|
||||
class="w-100 h-100"
|
||||
alt="<?php echo e($favorite->tour->title); ?>">
|
||||
<?php else: ?>
|
||||
<img src="<?php echo e(asset('assets/admin/images/faces/DefaultAvatar.jpg')); ?>"
|
||||
class="w-100 h-100"
|
||||
alt="<?php echo e($favorite->tour->title); ?>">
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('accounts.favorites.tour.toggle', $favorite->tour->id)); ?>" class="d-inline">
|
||||
<?php echo csrf_field(); ?>
|
||||
<button type="submit" class="add-wishlist border-0 bg-transparent" title="حذف از علاقهمندی">
|
||||
<i class="fas fa-heart text-danger"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="hotel-content d-flex flex-column flex-grow-1 justify-content-between">
|
||||
<div>
|
||||
<h4 class="hotel-title">
|
||||
<a href="<?php echo e(route('tours.show', $favorite->tour->id)); ?>">
|
||||
<?php echo e($favorite->tour->title); ?>
|
||||
|
||||
</a>
|
||||
</h4>
|
||||
<p><i class="far fa-location-dot"></i>
|
||||
<?php echo e($favorite->tour->originCity->name ?? 'مبدأ'); ?>
|
||||
|
||||
<i class="fas fa-arrow-right-long"></i>
|
||||
<?php echo e($favorite->tour->city?->name ?? 'مقصد'); ?>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="hotel-bottom mt-3">
|
||||
<div class="hotel-price">
|
||||
<span class="hotel-price-amount">
|
||||
<?php echo e(number_format(optional($favorite->tour->tourDepartures->first())->price ?? 0)); ?> تومان
|
||||
</span>
|
||||
</div>
|
||||
<div class="hotel-text-btn">
|
||||
<a href="<?php echo e(route('tours.show', $favorite->tour->id)); ?>">
|
||||
نمایش جزئیات <i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php elseif($favorite->flight): ?>
|
||||
<div class="col-md-6 col-lg-4 mb-4">
|
||||
<div class="hotel-item h-100 d-flex flex-column justify-content-between">
|
||||
<div class="hotel-img position-relative">
|
||||
<span class="badge bg-primary position-absolute top-0 start-0 m-2">پرواز</span>
|
||||
<?php if($favorite->flight->coverImage?->file_id): ?>
|
||||
<img src="<?php echo e(getFileUrl($favorite->flight->coverImage->file_id)); ?>"
|
||||
class="w-100 h-100"
|
||||
alt="<?php echo e($favorite->flight->flight_number); ?>">
|
||||
<?php else: ?>
|
||||
<img src="<?php echo e(asset('assets/img/account/user.jpg')); ?>"
|
||||
class="w-100 h-100"
|
||||
alt="<?php echo e($favorite->flight->title); ?>">
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('accounts.favorites.flight.toggle', $favorite->flight->id)); ?>" class="d-inline">
|
||||
<?php echo csrf_field(); ?>
|
||||
<button type="submit" class="add-wishlist border-0 bg-transparent" title="حذف از علاقهمندی">
|
||||
<i class="fas fa-heart text-danger"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="hotel-content d-flex flex-column flex-grow-1 justify-content-between">
|
||||
<div>
|
||||
<h4 class="hotel-title">
|
||||
<a href="<?php echo e(route('flights.show', $favorite->flight->id)); ?>">
|
||||
<?php echo e($favorite->flight->origin_airport?->city?->name ?? 'مبدأ'); ?> به <?php echo e($favorite->flight->airport?->city?->name ?? 'مقصد'); ?>
|
||||
|
||||
</a>
|
||||
</h4>
|
||||
<p class="text-muted mb-1">
|
||||
<i class="far fa-plane"></i>
|
||||
<?php echo e($favorite->flight->airline?->name); ?> (شماره: <?php echo e($favorite->flight->flight_number); ?>)
|
||||
</p>
|
||||
<?php if($favorite->flight->departure_time): ?>
|
||||
<p class="small text-muted mb-0">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
<?php echo e(\Hekmatinasser\Verta\Verta::instance($favorite->flight->departure_time)->format('Y/m/d - H:i')); ?>
|
||||
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="hotel-bottom mt-3">
|
||||
<div class="hotel-price">
|
||||
<span class="hotel-price-amount">
|
||||
<?php echo e(number_format($favorite->flight->price)); ?>
|
||||
|
||||
<span class="hotel-price-type">تومان</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="hotel-text-btn">
|
||||
<a href="<?php echo e(route('flights.show', $favorite->flight->id)); ?>">
|
||||
نمایش جزئیات <i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
||||
<div class="col-12 text-center py-5">
|
||||
<i class="far fa-heart-broken fa-3x text-muted mb-3"></i>
|
||||
<h5>هنوز موردی به علاقهمندیهایتان اضافه نکردهاید.</h5>
|
||||
<p class="text-muted mb-0">
|
||||
تورها و پروازهای مورد علاقه خود را ذخیره کنید تا در هر زمان به راحتی به آنها دسترسی داشته باشید.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if($favorites->hasPages()): ?>
|
||||
<div class="pagination-area my-4">
|
||||
<div class="d-flex justify-content-center">
|
||||
<?php echo e($favorites->links()); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php echo $__env->make('account.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/account/favorite-list.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user