feat: make images dynamic across pages
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
class="w-100 h-100"
|
||||
alt="{{ $favorite->tour->title }}">
|
||||
@else
|
||||
<img src="{{ asset('assets/admin/images/faces/DefaultAvatar.jpg') }}"
|
||||
<img src="{{ asset('assets/Admin/images/tour/single-2.jpg') }}"
|
||||
class="w-100 h-100"
|
||||
alt="{{ $favorite->tour->title }}">
|
||||
@endif
|
||||
@@ -99,7 +99,7 @@
|
||||
class="w-100 h-100"
|
||||
alt="{{ $favorite->flight->flight_number }}">
|
||||
@else
|
||||
<img src="{{ asset('assets/img/account/user.jpg') }}"
|
||||
<img src="{{ asset('assets/Admin/images/tour/single-2.jpg') }}"
|
||||
class="w-100 h-100"
|
||||
alt="{{ $favorite->flight->title }}">
|
||||
@endif
|
||||
|
||||
@@ -133,7 +133,9 @@
|
||||
class="w-100 h-100"
|
||||
alt="{{ $flight->flight_number }}">
|
||||
@else
|
||||
-
|
||||
<img src="{{ asset('assets/Admin/images/tour/single-2.jpg') }}"
|
||||
class="w-100 h-100"
|
||||
alt="{{ $flight->flight_number }}">
|
||||
@endif
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
class="w-100 h-100"
|
||||
alt="{{ $flight->flight_number }}">
|
||||
@else
|
||||
<img src="{{ asset('assets/img/account/user.jpg') }}"
|
||||
<img src="{{ asset('assets/Admin/images/tour/single-2.jpg') }}"
|
||||
class="w-100 h-100"
|
||||
alt="{{ $flight->title }}">
|
||||
@endif
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<img src="{{ getFileUrl($flight->images->first()->file_id) }}" alt="{{ $flight->flight_number }}">
|
||||
@endif
|
||||
@else
|
||||
<img src="{{ asset('assets/img/flight/single-1.jpg') }}" alt="{{ $flight->flight_number }}">
|
||||
<img src="{{ asset('assets/Admin/images/tour/single-2.jpg') }}" alt="{{ $flight->flight_number }}">
|
||||
@endif
|
||||
</div>
|
||||
<div class="listing-header">
|
||||
@@ -253,7 +253,11 @@
|
||||
@forelse ($flight->comments as $comment)
|
||||
<div class="listing-review-item">
|
||||
<div class="listing-review-author">
|
||||
@if($comment->user?->avatar?->file)
|
||||
<img src="{{ getFileUrl($comment->user->avatar->file_id) }}" alt="user">
|
||||
@else
|
||||
<img src="{{ asset('assets/img/account/DefaultAvatar.jpg') }}" alt="user">
|
||||
@endif
|
||||
<div class="listing-review-author-info">
|
||||
<div>
|
||||
<h6>{{ $comment->guest_name ?? $comment->user?->first_name }}</h6>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<img src="{{ getFileUrl($tour->images->first()->file_id) }}" alt="{{ $tour->flight_number }}">
|
||||
@endif
|
||||
@else
|
||||
<img src="{{ asset('assets/img/flight/single-1.jpg') }}" alt="{{ $tour->flight_number }}">
|
||||
<img src="{{ asset('assets/Admin/images/tour/single-2.jpg') }}" alt="{{ $tour->flight_number }}">
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -160,7 +160,11 @@
|
||||
@forelse ($tour->comments as $comment)
|
||||
<div class="listing-review-item">
|
||||
<div class="listing-review-author">
|
||||
@if($comment->user?->avatar?->file)
|
||||
<img src="{{ getFileUrl($comment->user->avatar->file_id) }}" alt="user">
|
||||
@else
|
||||
<img src="{{ asset('assets/img/account/DefaultAvatar.jpg') }}" alt="user">
|
||||
@endif
|
||||
<div class="listing-review-author-info">
|
||||
<div>
|
||||
<h6>{{ $comment->guest_name ?? $comment->user?->first_name }}</h6>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="col-md-6 col-lg-3">
|
||||
<div class="footer-widget-box about-us">
|
||||
<a href="<?php echo e(route('index')); ?>" class="footer-logo">
|
||||
<img src="assets/img/logo/logo-dark.png" alt>
|
||||
<img src="<?php echo e(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="<?php echo e(asset('assets/img/payment/paypal.svg')); ?>" alt>
|
||||
<img src="<?php echo e(asset('assets/img/payment/mastercard.svg')); ?>" alt>
|
||||
<img src="<?php echo e(asset('assets/img/payment/visa.svg')); ?>" alt>
|
||||
<img src="<?php echo e(asset('assets/img/payment/discover.svg')); ?>" alt>
|
||||
<img src="<?php echo e(asset('assets/img/payment/american-express.svg')); ?>" alt>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
class="w-100 h-100"
|
||||
alt="<?php echo e($flight->flight_number); ?>">
|
||||
<?php else: ?>
|
||||
<img src="<?php echo e(asset('assets/img/account/user.jpg')); ?>"
|
||||
<img src="<?php echo e(asset('assets/Admin/images/tour/single-2.jpg')); ?>"
|
||||
class="w-100 h-100"
|
||||
alt="<?php echo e($flight->title); ?>">
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<img src="<?php echo e(getFileUrl($tour->images->first()->file_id)); ?>" alt="<?php echo e($tour->flight_number); ?>">
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo e(asset('assets/img/flight/single-1.jpg')); ?>" alt="<?php echo e($tour->flight_number); ?>">
|
||||
<img src="<?php echo e(asset('assets/Admin/images/tour/single-2.jpg')); ?>" alt="<?php echo e($tour->flight_number); ?>">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
@@ -162,7 +162,11 @@
|
||||
<?php $__empty_1 = true; $__currentLoopData = $tour->comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<div class="listing-review-item">
|
||||
<div class="listing-review-author">
|
||||
<?php if($comment->user?->avatar?->file): ?>
|
||||
<img src="<?php echo e(getFileUrl($comment->user->avatar->file_id)); ?>" alt="user">
|
||||
<?php else: ?>
|
||||
<img src="<?php echo e(asset('assets/img/account/DefaultAvatar.jpg')); ?>" alt="user">
|
||||
<?php endif; ?>
|
||||
<div class="listing-review-author-info">
|
||||
<div>
|
||||
<h6><?php echo e($comment->guest_name ?? $comment->user?->first_name); ?></h6>
|
||||
|
||||
@@ -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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(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="<?php echo e(asset('assets/img/blog/03.jpg')); ?>" alt="Thumb">
|
||||
</div>
|
||||
<div class="blog-item-info">
|
||||
<div class="blog-item-meta">
|
||||
|
||||
@@ -0,0 +1,470 @@
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<main class="main">
|
||||
|
||||
<div class="site-breadcrumb" style="background: url(assets/img/breadcrumb/02.jpg)">
|
||||
<div class="container">
|
||||
<h2 class="breadcrumb-title">ثبت نام</h2>
|
||||
<ul class="breadcrumb-menu">
|
||||
<li><a href="<?php echo e(route('index')); ?>">صفحه اصلی</a></li>
|
||||
<li class="active">ثبت نام</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-area py-120">
|
||||
<div class="container">
|
||||
<?php if(session('error')): ?>
|
||||
<span style="color: red"><?php echo e(session('error')); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if(session('success')): ?>
|
||||
<span style="color: red"><?php echo e(session('success')); ?></span>
|
||||
<?php endif; ?>
|
||||
<div class="col-md-8 mx-auto">
|
||||
<div class="login-form">
|
||||
<div class="login-header">
|
||||
<a href="<?php echo e(route('index')); ?>">
|
||||
<img src="<?php echo e(asset('assets/img/logo/logo-dark.png')); ?>" alt="Logo">
|
||||
</a>
|
||||
<p>حساب MyTrip خود را ایجاد کنید</p>
|
||||
</div>
|
||||
|
||||
<form action="<?php echo e(route('auth.register.post')); ?>" method="POST" enctype="multipart/form-data">
|
||||
<?php echo csrf_field(); ?>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="first_name">نام <span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<input type="text" id="first_name" name="first_name" class="form-control"
|
||||
placeholder="نام" value="<?php echo e(old('first_name')); ?>">
|
||||
<i class="far fa-user"></i>
|
||||
</div>
|
||||
<?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>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="last_name">نام خانوادگی<span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<input type="text" id="last_name" name="last_name" class="form-control"
|
||||
placeholder="نام خانوادگی" value="<?php echo e(old('last_name')); ?>">
|
||||
<i class="far fa-user"></i>
|
||||
</div>
|
||||
<?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>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="national_code">کد ملی<span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<input type="text" id="national_code" name="national_code"
|
||||
class="form-control" placeholder="کد ملی"
|
||||
value="<?php echo e(old('national_code')); ?>">
|
||||
<i class="far fa-id-card"></i>
|
||||
</div>
|
||||
<?php $__errorArgs = ['national_code'];
|
||||
$__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 class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="gender">جنسیت<span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<select id="gender" name="gender" class="form-control">
|
||||
<option
|
||||
value="" <?php if(old('gender') === null || old('gender') === ''): echo 'selected'; endif; ?>>
|
||||
انتخاب کنید
|
||||
</option>
|
||||
<option
|
||||
value="<?php echo e(\App\Enums\User\UserGender::UNKNOWN->value); ?>" <?php if(old('gender') !== null && old('gender') !== '' && old('gender') == \App\Enums\User\UserGender::UNKNOWN->value): echo 'selected'; endif; ?>>
|
||||
نامشخص
|
||||
</option>
|
||||
<option
|
||||
value="<?php echo e(\App\Enums\User\UserGender::MALE->value); ?>" <?php if(old('gender') !== null && old('gender') !== '' && old('gender') == \App\Enums\User\UserGender::MALE->value): echo 'selected'; endif; ?>>
|
||||
آقا
|
||||
</option>
|
||||
<option
|
||||
value="<?php echo e(\App\Enums\User\UserGender::FEMALE->value); ?>" <?php if(old('gender') !== null && old('gender') !== '' && old('gender') == \App\Enums\User\UserGender::FEMALE->value): echo 'selected'; endif; ?>>
|
||||
خانم
|
||||
</option>
|
||||
</select>
|
||||
<i class="far fa-venus-mars"></i>
|
||||
</div>
|
||||
<?php $__errorArgs = ['gender'];
|
||||
$__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="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="marital_status">وضعیت تاهل<span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<select id="marital_status" name="marital_status" class="form-control">
|
||||
<option
|
||||
value="" <?php if(old('marital_status') === null || old('marital_status') === ''): echo 'selected'; endif; ?>>
|
||||
انتخاب کنید
|
||||
</option>
|
||||
<option
|
||||
value="<?php echo e(\App\Enums\User\UserMarital::SINGLE->value); ?>" <?php if(old('marital_status') !== null && old('marital_status') !== '' && old('marital_status') == \App\Enums\User\UserMarital::SINGLE->value): echo 'selected'; endif; ?>>
|
||||
مجرد
|
||||
</option>
|
||||
<option
|
||||
value="<?php echo e(\App\Enums\User\UserMarital::MARRIED->value); ?>" <?php if(old('marital_status') !== null && old('marital_status') !== '' && old('marital_status') == \App\Enums\User\UserMarital::MARRIED->value): echo 'selected'; endif; ?>>
|
||||
متأهل
|
||||
</option>
|
||||
<option
|
||||
value="<?php echo e(\App\Enums\User\UserMarital::DIVORCED->value); ?>" <?php if(old('marital_status') !== null && old('marital_status') !== '' && old('marital_status') == \App\Enums\User\UserMarital::DIVORCED->value): echo 'selected'; endif; ?>>
|
||||
جدا شده
|
||||
</option>
|
||||
</select>
|
||||
<i class="fas fa-ring"></i>
|
||||
</div>
|
||||
<?php $__errorArgs = ['marital_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>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="spouse_name">نام و نام خانوادگی همسر</label>
|
||||
<div class="form-group-icon">
|
||||
<input type="text" id="spouse_name" name="spouse_name" class="form-control"
|
||||
placeholder="نام همسر" value="<?php echo e(old('spouse_name')); ?>">
|
||||
<i class="far fa-user-friends"></i>
|
||||
</div>
|
||||
<?php $__errorArgs = ['spouse_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>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="mobile">شماره همراه<span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<input type="text" id="mobile" name="mobile" class="form-control"
|
||||
placeholder="0912..." value="<?php echo e(old('mobile')); ?>">
|
||||
<i class="fas fa-phone"></i>
|
||||
</div>
|
||||
<?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>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="email">آدرس ایمیل<span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<input type="email" id="email" name="email" class="form-control"
|
||||
placeholder="ایمیل خود را وارد کنید" value="<?php echo e(old('email')); ?>">
|
||||
<i class="far fa-envelope"></i>
|
||||
</div>
|
||||
<?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>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="username">نام کاربری<span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<input type="text" id="username" name="username" class="form-control"
|
||||
placeholder="Username" value="<?php echo e(old('username')); ?>">
|
||||
<i class="far fa-user-circle"></i>
|
||||
</div>
|
||||
<?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>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="avatar">عکس پروفایل</label>
|
||||
<div class="form-group-icon">
|
||||
<input type="file" id="avatar" name="avatar" class="form-control">
|
||||
<i class="far fa-image"></i>
|
||||
</div>
|
||||
<?php $__errorArgs = ['avatar'];
|
||||
$__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="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="password">رمز عبور<span style="color: red">*</span></label>
|
||||
<div class="form-group-icon">
|
||||
<input type="password" id="password" name="password" class="form-control"
|
||||
placeholder="رمز عبور">
|
||||
<i class="far fa-lock"></i>
|
||||
</div>
|
||||
<?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 class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="password_confirmation">تایید رمز عبور</label>
|
||||
<div class="form-group-icon">
|
||||
<input type="password" id="password_confirmation"
|
||||
name="password_confirmation" class="form-control"
|
||||
placeholder="تکرار رمز عبور">
|
||||
<i class="far fa-check-circle"></i>
|
||||
</div>
|
||||
<?php $__errorArgs = ['password_confirmation'];
|
||||
$__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="row">
|
||||
<div class="col-md-6">
|
||||
<label for="province_id">استان</label>
|
||||
|
||||
<select id="province_id" name="province_id" class="form-control">
|
||||
<option value="">انتخاب استان</option>
|
||||
|
||||
<?php $__currentLoopData = $provinces; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($id); ?>" <?php if(old('province_id') == $id): echo 'selected'; endif; ?>>
|
||||
<?php echo e($name); ?>
|
||||
|
||||
</option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</select>
|
||||
|
||||
<?php $__errorArgs = ['province_id'];
|
||||
$__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-md-6">
|
||||
<label for="city_id">شهر</label>
|
||||
<select id="city_id" name="city_id" class="form-control" disabled>
|
||||
<option value="">ابتدا استان را انتخاب کنید</option>
|
||||
</select>
|
||||
<?php $__errorArgs = ['city_id'];
|
||||
$__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 class="form-check form-group mt-3">
|
||||
<input class="form-check-input" type="checkbox" name="terms" value="1" id="agree"
|
||||
required>
|
||||
<label class="form-check-label" for="agree">
|
||||
من موافقم با <a href="#">شرایط استفاده از خدمات.</a>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center mt-4">
|
||||
<button type="submit" class="theme-btn"><i class="far fa-paper-plane"></i> ثبت نام
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="login-footer">
|
||||
<div class="login-divider"><span>یا</span></div>
|
||||
<p>از قبل حساب کاربری دارید؟ <a href="<?php echo e(route('auth.login.index')); ?>">وارد شدن.</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
<?php $__env->startPush('scripts'); ?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
const provinceSelect = $('#province_id');
|
||||
const citySelect = $('#city_id');
|
||||
|
||||
|
||||
const oldProvinceId = "<?php echo e(old('province_id')); ?>";
|
||||
const oldCityId = "<?php echo e(old('city_id')); ?>";
|
||||
|
||||
function loadCities(provinceId, selectedCityId = null) {
|
||||
if (!provinceId) {
|
||||
citySelect.html('<option value="">ابتدا استان را انتخاب کنید</option>');
|
||||
citySelect.prop('disabled', true);
|
||||
return;
|
||||
}
|
||||
|
||||
citySelect.html('<option value="">در حال بارگذاری شهرها...</option>');
|
||||
citySelect.prop('disabled', true);
|
||||
|
||||
let url = "<?php echo e(route('locations.cities', ':provinceId')); ?>".replace(':provinceId', provinceId);
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
success: function (cities) {
|
||||
citySelect.empty();
|
||||
citySelect.append('<option value="">انتخاب شهر</option>');
|
||||
|
||||
$.each(cities, function (index, city) {
|
||||
let isSelected = (selectedCityId && selectedCityId == city.id) ? 'selected' : '';
|
||||
citySelect.append(
|
||||
`<option value="${city.id}" ${isSelected}>${city.name}</option>`
|
||||
);
|
||||
});
|
||||
|
||||
citySelect.prop('disabled', false);
|
||||
},
|
||||
error: function (xhr) {
|
||||
console.error('Error:', xhr.responseText);
|
||||
citySelect.html('<option value="">خطا در دریافت لیست شهرها</option>');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
provinceSelect.on('change', function () {
|
||||
let provinceId = $(this).val();
|
||||
loadCities(provinceId);
|
||||
});
|
||||
|
||||
|
||||
if (oldProvinceId) {
|
||||
loadCities(oldProvinceId, oldCityId);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php $__env->stopPush(); ?>
|
||||
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/auth/register.blade.php ENDPATH**/ ?>
|
||||
@@ -9,7 +9,7 @@
|
||||
<img src="<?php echo e(getFileUrl($flight->images->first()->file_id)); ?>" alt="<?php echo e($flight->flight_number); ?>">
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo e(asset('assets/img/flight/single-1.jpg')); ?>" alt="<?php echo e($flight->flight_number); ?>">
|
||||
<img src="<?php echo e(asset('assets/Admin/images/tour/single-2.jpg')); ?>" alt="<?php echo e($flight->flight_number); ?>">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="listing-header">
|
||||
@@ -253,7 +253,11 @@
|
||||
<?php $__empty_1 = true; $__currentLoopData = $flight->comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<div class="listing-review-item">
|
||||
<div class="listing-review-author">
|
||||
<?php if($comment->user?->avatar?->file): ?>
|
||||
<img src="<?php echo e(getFileUrl($comment->user->avatar->file_id)); ?>" alt="user">
|
||||
<?php else: ?>
|
||||
<img src="<?php echo e(asset('assets/img/account/DefaultAvatar.jpg')); ?>" alt="user">
|
||||
<?php endif; ?>
|
||||
<div class="listing-review-author-info">
|
||||
<div>
|
||||
<h6><?php echo e($comment->guest_name ?? $comment->user?->first_name); ?></h6>
|
||||
|
||||
Reference in New Issue
Block a user