Merge pull request #58 from WDI-Ideas/HritikCheers

Hritik cheers
This commit is contained in:
Hritikkk9
2024-06-02 20:39:27 +05:30
committed by GitHub
10 changed files with 1204 additions and 897 deletions

View File

@@ -31,7 +31,7 @@ class FaqController extends Controller
return response()->json(['success' => 'Status change successfully.']);
}
public function delete_faq($id)
{
$faq = Faq::find($id);
@@ -49,24 +49,24 @@ class FaqController extends Controller
$faq = Faq::find($request->faq_id);
$faq->question = $request->question;
$faq->answers = $request->answer;
$faq->faq_category_id = $request->faq_categ;
$faq->faq_category_id = $request->faq_categ;
$faq->save();
return response()->json(['success' => true, 'status' => 200]);
}
public function store(Request $request)
{
try {
$faq = new Faq();
$faq->question = $request->question;
$faq->answers = $request->answer;
$faq->faq_category_id = $request->faq_categ;
$faq->save();
return response()->json(['success' => true, 'status' => 200]);
} catch (\Exception $e) {
// Log the exception or handle it as needed
return response()->json(['success' => false, 'error' => $e->getMessage(), 'status' => 500]);
}
try {
$faq = new Faq();
$faq->question = $request->question;
$faq->answers = $request->answer;
$faq->faq_category_id = $request->faq_categ;
$faq->save();
return response()->json(['success' => true, 'status' => 200]);
} catch (\Exception $e) {
// Log the exception or handle it as needed
return response()->json(['success' => false, 'error' => $e->getMessage(), 'status' => 500]);
}
}
}

View File

@@ -249,7 +249,7 @@ public function archive_restaurant()
{
try {
$restaurant = ManageRestaurant::where('is_active', '1')->onlyTrashed()->latest()->get();
$restaurant = ManageRestaurant::onlyTrashed()->latest()->get();
return view('Admin.pages.manage_restaurants.archive_manage_restaurant', compact('restaurant'));
} catch (Exception $e) {
Log::error("Manage Voucher Page Not Load " . $e->getMessage());

View File

@@ -96,11 +96,11 @@ class AuthServices
}
$isExistEmail = IamPrincipal::where('email_address', $request->email_address)->where('principal_type_xid', 3)->whereNull('deleted_at')->first();
if ($isExistEmail == null) {
return jsonResponseWithErrorMessageApi(__('auth.incorrect_email_passport'), 403);
return jsonResponseWithErrorMessageApi(__('auth.incorrect_email'), 403);
}
if ($isExistEmail && !(Hash::check($request->password, $isExistEmail->password))) {
Log::error('Entered Password is wrong.');
return jsonResponseWithErrorMessageApi(__('auth.incorrect_email_passport'), 403);
return jsonResponseWithErrorMessageApi(__('auth.incorrect_password'), 403);
}
if (!$token = auth()->login($isExistEmail)) {

View File

@@ -101,7 +101,7 @@ return [
|
*/
'ttl' => env('JWT_TTL', 60),
'ttl' => env('JWT_TTL', null),
/*
|--------------------------------------------------------------------------
@@ -147,7 +147,7 @@ return [
'required_claims' => [
'iss',
'iat',
'exp',
//'exp',
'nbf',
'sub',
'jti',

301
config/jwt_old.php Normal file
View File

@@ -0,0 +1,301 @@
<?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| JWT Authentication Secret
|--------------------------------------------------------------------------
|
| Don't forget to set this in your .env file, as it will be used to sign
| your tokens. A helper command is provided for this:
| `php artisan jwt:secret`
|
| Note: This will be used for Symmetric algorithms only (HMAC),
| since RSA and ECDSA use a private/public key combo (See below).
|
*/
'secret' => env('JWT_SECRET'),
/*
|--------------------------------------------------------------------------
| JWT Authentication Keys
|--------------------------------------------------------------------------
|
| The algorithm you are using, will determine whether your tokens are
| signed with a random string (defined in `JWT_SECRET`) or using the
| following public & private keys.
|
| Symmetric Algorithms:
| HS256, HS384 & HS512 will use `JWT_SECRET`.
|
| Asymmetric Algorithms:
| RS256, RS384 & RS512 / ES256, ES384 & ES512 will use the keys below.
|
*/
'keys' => [
/*
|--------------------------------------------------------------------------
| Public Key
|--------------------------------------------------------------------------
|
| A path or resource to your public key.
|
| E.g. 'file://path/to/public/key'
|
*/
'public' => env('JWT_PUBLIC_KEY'),
/*
|--------------------------------------------------------------------------
| Private Key
|--------------------------------------------------------------------------
|
| A path or resource to your private key.
|
| E.g. 'file://path/to/private/key'
|
*/
'private' => env('JWT_PRIVATE_KEY'),
/*
|--------------------------------------------------------------------------
| Passphrase
|--------------------------------------------------------------------------
|
| The passphrase for your private key. Can be null if none set.
|
*/
'passphrase' => env('JWT_PASSPHRASE'),
],
/*
|--------------------------------------------------------------------------
| JWT time to live
|--------------------------------------------------------------------------
|
| Specify the length of time (in minutes) that the token will be valid for.
| Defaults to 1 hour.
|
| You can also set this to null, to yield a never expiring token.
| Some people may want this behaviour for e.g. a mobile app.
| This is not particularly recommended, so make sure you have appropriate
| systems in place to revoke the token if necessary.
| Notice: If you set this to null you should remove 'exp' element from 'required_claims' list.
|
*/
'ttl' => env('JWT_TTL', null),
/*
|--------------------------------------------------------------------------
| Refresh time to live
|--------------------------------------------------------------------------
|
| Specify the length of time (in minutes) that the token can be refreshed
| within. I.E. The user can refresh their token within a 2 week window of
| the original token being created until they must re-authenticate.
| Defaults to 2 weeks.
|
| You can also set this to null, to yield an infinite refresh time.
| Some may want this instead of never expiring tokens for e.g. a mobile app.
| This is not particularly recommended, so make sure you have appropriate
| systems in place to revoke the token if necessary.
|
*/
'refresh_ttl' => env('JWT_REFRESH_TTL', null),
/*
|--------------------------------------------------------------------------
| JWT hashing algorithm
|--------------------------------------------------------------------------
|
| Specify the hashing algorithm that will be used to sign the token.
|
*/
'algo' => env('JWT_ALGO', Tymon\JWTAuth\Providers\JWT\Provider::ALGO_HS256),
/*
|--------------------------------------------------------------------------
| Required Claims
|--------------------------------------------------------------------------
|
| Specify the required claims that must exist in any token.
| A TokenInvalidException will be thrown if any of these claims are not
| present in the payload.
|
*/
'required_claims' => [
'iss',
'iat',
'exp',
'nbf',
'sub',
'jti',
],
/*
|--------------------------------------------------------------------------
| Persistent Claims
|--------------------------------------------------------------------------
|
| Specify the claim keys to be persisted when refreshing a token.
| `sub` and `iat` will automatically be persisted, in
| addition to the these claims.
|
| Note: If a claim does not exist then it will be ignored.
|
*/
'persistent_claims' => [
// 'foo',
// 'bar',
],
/*
|--------------------------------------------------------------------------
| Lock Subject
|--------------------------------------------------------------------------
|
| This will determine whether a `prv` claim is automatically added to
| the token. The purpose of this is to ensure that if you have multiple
| authentication models e.g. `App\User` & `App\OtherPerson`, then we
| should prevent one authentication request from impersonating another,
| if 2 tokens happen to have the same id across the 2 different models.
|
| Under specific circumstances, you may want to disable this behaviour
| e.g. if you only have one authentication model, then you would save
| a little on token size.
|
*/
'lock_subject' => true,
/*
|--------------------------------------------------------------------------
| Leeway
|--------------------------------------------------------------------------
|
| This property gives the jwt timestamp claims some "leeway".
| Meaning that if you have any unavoidable slight clock skew on
| any of your servers then this will afford you some level of cushioning.
|
| This applies to the claims `iat`, `nbf` and `exp`.
|
| Specify in seconds - only if you know you need it.
|
*/
'leeway' => env('JWT_LEEWAY', 0),
/*
|--------------------------------------------------------------------------
| Blacklist Enabled
|--------------------------------------------------------------------------
|
| In order to invalidate tokens, you must have the blacklist enabled.
| If you do not want or need this functionality, then set this to false.
|
*/
'blacklist_enabled' => env('JWT_BLACKLIST_ENABLED', true),
/*
| -------------------------------------------------------------------------
| Blacklist Grace Period
| -------------------------------------------------------------------------
|
| When multiple concurrent requests are made with the same JWT,
| it is possible that some of them fail, due to token regeneration
| on every request.
|
| Set grace period in seconds to prevent parallel request failure.
|
*/
'blacklist_grace_period' => env('JWT_BLACKLIST_GRACE_PERIOD', 0),
/*
|--------------------------------------------------------------------------
| Cookies encryption
|--------------------------------------------------------------------------
|
| By default Laravel encrypt cookies for security reason.
| If you decide to not decrypt cookies, you will have to configure Laravel
| to not encrypt your cookie token by adding its name into the $except
| array available in the middleware "EncryptCookies" provided by Laravel.
| see https://laravel.com/docs/master/responses#cookies-and-encryption
| for details.
|
| Set it to true if you want to decrypt cookies.
|
*/
'decrypt_cookies' => false,
/*
|--------------------------------------------------------------------------
| Providers
|--------------------------------------------------------------------------
|
| Specify the various providers used throughout the package.
|
*/
'providers' => [
/*
|--------------------------------------------------------------------------
| JWT Provider
|--------------------------------------------------------------------------
|
| Specify the provider that is used to create and decode the tokens.
|
*/
'jwt' => Tymon\JWTAuth\Providers\JWT\Lcobucci::class,
/*
|--------------------------------------------------------------------------
| Authentication Provider
|--------------------------------------------------------------------------
|
| Specify the provider that is used to authenticate users.
|
*/
'auth' => Tymon\JWTAuth\Providers\Auth\Illuminate::class,
/*
|--------------------------------------------------------------------------
| Storage Provider
|--------------------------------------------------------------------------
|
| Specify the provider that is used to store tokens in the blacklist.
|
*/
'storage' => Tymon\JWTAuth\Providers\Storage\Illuminate::class,
],
];

File diff suppressed because it is too large Load Diff

View File

@@ -10,27 +10,29 @@
<a class="nav-link dropdown-toggle " href="#" id="userProfileDropdown" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<img src="{{ asset('public/assets/img/bell.svg') }}" />
<div class="dropdown-menu position-absolute" aria-labelledby="userProfileDropdown"
data-bs-popper="none">
<div class="dropdown-item">
<div class="notify-content">
<div class="msg-title">
<h3>Notifications</h3>
<a href="#">Viewall</a>
<div class="dropdown-menu position-absolute" aria-labelledby="userProfileDropdown"
data-bs-popper="none">
<div class="dropdown-item">
<div class="notify-content">
<div class="msg-title">
<h3>Notifications</h3>
<a href="#">Viewall</a>
</div>
<div class="divider"></div>
<h4>Lorem ipsum</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</p>
<span class="tms">9 min ago</span>
<div class="divider"></div>
<h4>Lorem ipsum <span></span></h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</p>
<span class="tms">9 min ago</span>
</div>
<div class="divider"></div>
<h4>Lorem ipsum</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<span class="tms">9 min ago</span>
<div class="divider"></div>
<h4>Lorem ipsum <span></span></h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<span class="tms">9 min ago</span>
</div>
</div>
</div>
</li>
<li class="nav-item dropdown user">
<!-- <a class="nav-link dropdown-toggle" href="{{ route('profile') }}">
@@ -57,9 +59,9 @@
data-bs-popper="none">
<div class="dropdown-item">
<a href="signup.php">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="feather feather-log-out">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" class="feather feather-log-out">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
<polyline points="16 17 21 12 16 7"></polyline>
<line x1="21" y1="12" x2="9" y2="12"></line>
@@ -87,10 +89,10 @@
<div class="active-tab"></div>
<li class="tooltip-element <?php
if ($currentPage == 'dashboard') {
echo 'active';
}
?>" data-tooltip="0">
if ($currentPage == 'dashboard') {
echo 'active';
}
?>" data-tooltip="0">
<a href="{{ route('dashboard') }}" data-active="0">
<div class="icons">
<img src="{{ asset('public/assets/img/dashboard.svg') }}" />
@@ -110,10 +112,10 @@
<div class="dropdown-container">
<ul>
<li class="tooltip-element <?php
if ($currentPage == 'manage-patient') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'manage-patient') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('manage.customer') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/single-user.svg') }}" />
@@ -123,10 +125,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-restaurant_app') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'manage-restaurant_app') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('restraunt_users') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/restraunt.svg') }}" />
@@ -136,10 +138,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'sub-admins') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'sub-admins') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('manage.subAdmin') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/Group 57906.svg') }}">
@@ -153,50 +155,50 @@
<li class="tooltip-element <?php
if ($currentPage == 'manage-passports') {
echo 'active';
}
?>" data-tooltip="2">
{{-- <li class="tooltip-element <?php
if ($currentPage == 'manage-passports') {
echo 'active';
}
?>" data-tooltip="2">
<a href="{{ route('manage.passport') }}" data-active="2">
<div class="icons">
<img src="{{ asset('public/assets/img/Group.svg') }}" >
<span class="text">Manage Passports</span>
</div>
</a>
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-vouchers') {
echo 'active';
}
?>" data-tooltip="3">
<a href="{{ route('manage.restaurants') }}" data-active="3">
<div class="icons">
<img src="{{ asset('public/assets/img/coupon 1.svg') }}" />
<span class="text">Manage Restaurant</span>
</div>
</a>
</li>
</li> --}}
<li class="tooltip-element <?php
if ($currentPage == 'manage-vouchers') {
echo 'active';
}
?>" data-tooltip="3">
if ($currentPage == 'manage-vouchers') {
echo 'active';
}
?>" data-tooltip="3">
<a href="{{ route('manage.restaurants') }}" data-active="3">
<div class="icons">
<img src="{{ asset('public/assets/img/coupon 1.svg') }}" />
<span class="text">Manage Restaurant</span>
</div>
</a>
</li>
{{-- <li class="tooltip-element <?php
if ($currentPage == 'manage-vouchers') {
echo 'active';
}
?>" data-tooltip="3">
<a href="{{ route('manage.voucher') }}" data-active="3">
<div class="icons">
<img src="{{ asset('public/assets/img/fluent-mdl2_coupon.svg') }}" >
<span class="text">Manage Vouchers</span>
</div>
</a>
</li>
</li> --}}
<li class="tooltip-element <?php
if ($currentPage == 'manage-contact') {
echo 'active';
}
?>" data-tooltip="4">
if ($currentPage == 'manage-contact') {
echo 'active';
}
?>" data-tooltip="4">
<a href="{{ route('manage.contact') }}" data-active="4">
<div class="icons">
<img src="{{ asset('public/assets/img/call(1) 3.svg') }}" />
@@ -218,10 +220,10 @@
<div class="dropdown-container">
<ul>
<li class="tooltip-element <?php
if ($currentPage == 'manage-news') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'manage-news') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('manage.Newarticles') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/article 1.svg') }}" />
@@ -231,10 +233,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-newsletter') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'manage-newsletter') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('manage.newLetter') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/quill_inbox-newsletter.svg') }}" />
@@ -244,10 +246,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-aboutus') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'manage-aboutus') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('manage.aboutUs') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/user (2) 1.svg') }}" />
@@ -257,10 +259,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-terms') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'manage-terms') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('manage.terms') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/contract 1.svg') }}" />
@@ -270,10 +272,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-faq') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'manage-faq') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('manage.faq') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/conversation 3.svg') }}" />
@@ -283,10 +285,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-privacy') {
echo 'active';
}
?>" data-tooltip="1">
if ($currentPage == 'manage-privacy') {
echo 'active';
}
?>" data-tooltip="1">
<a href="{{ route('manage.privacy') }}" data-active="1">
<div class="icons">
<img src="{{ asset('public/assets/img/privacy.svg') }}" />
@@ -300,10 +302,10 @@
</div> -->
<li class="tooltip-element <?php
if ($currentPage == 'manage-cms') {
echo 'active';
}
?>" data-tooltip="7">
if ($currentPage == 'manage-cms') {
echo 'active';
}
?>" data-tooltip="7">
<a href="{{ route('manage.cms') }}" data-active="7">
<div class="icons">
<img src="{{ asset('public/assets/img/article-line.svg') }}" />
@@ -313,10 +315,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-reports') {
echo 'active';
}
?>" data-tooltip="5">
if ($currentPage == 'manage-reports') {
echo 'active';
}
?>" data-tooltip="5">
<a href="{{ route('manage.reports') }}" data-active="5">
<div class="icons">
<img src="{{ asset('public/assets/img/admin 2.svg') }}" />
@@ -326,10 +328,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-feedback') {
echo 'active';
}
?>" data-tooltip="6">
if ($currentPage == 'manage-feedback') {
echo 'active';
}
?>" data-tooltip="6">
<a href="{{ route('manage.feedback') }}" data-active="6">
<div class="icons">
<img src="{{ asset('public/assets/img/Group 51242.svg') }}" />
@@ -339,10 +341,10 @@
</li>
<li class="tooltip-element <?php
if ($currentPage == 'manage-notification') {
echo 'active';
}
?>" data-tooltip="6">
if ($currentPage == 'manage-notification') {
echo 'active';
}
?>" data-tooltip="6">
<a href="{{ route('manage.notification') }}" data-active="6">
<div class="icons">
<img src="{{ asset('public/assets/img/Vector(1).svg') }}" />
@@ -353,10 +355,10 @@
<!-- <li class="tooltip-element <?php
if ($currentPage == 'manage-subscription') {
echo 'active';
}
?>" data-tooltip="3">
if ($currentPage == 'manage-subscription') {
echo 'active';
}
?>" data-tooltip="3">
<a href="manage-subscription.php" data-active="3">
<div class="icons">
<img src="../src/assets/img/newspaper-fee-svgrepo-com.svg" />
@@ -365,10 +367,10 @@
</a>
</li> -->
<!-- <li class="tooltip-element <?php
if ($currentPage == 'manage-transcation') {
echo 'active';
}
?>" data-tooltip="3">
if ($currentPage == 'manage-transcation') {
echo 'active';
}
?>" data-tooltip="3">
<a href="manage-transcation.php" data-active="3">
<div class="icons">
<img src="../src/assets/img/transaction.svg" />
@@ -379,10 +381,10 @@
<!-- <li class="tooltip-element <?php
if ($currentPage == 'manage-contact') {
echo 'active';
}
?>">
if ($currentPage == 'manage-contact') {
echo 'active';
}
?>">
<a href="manage-contact.php" aria-expanded="false" class="dropdown-toggle">
<div class="icons">
<img src="../src/assets/img/customer-list-line-svgrepo-com.svg" />
@@ -391,10 +393,10 @@
</a>
</li> -->
<!-- <li class="tooltip-element <?php
if ($currentPage == 'manage-role') {
echo 'active';
}
?>" data-tooltip="3">
if ($currentPage == 'manage-role') {
echo 'active';
}
?>" data-tooltip="3">
<a href="manage-role.php" data-active="3">
<div class="icons">
<img src="../src/assets/img/users-svgrepo-com.svg" />

View File

@@ -7,97 +7,101 @@
<div class="layout-px-spacing">
<div class="middle-content container-xxl p-0">
<div class="row layout-top-spacing ">
<div class="top-tabel">
<div class="row">
<div class="col-md-4">
<h6 class="card-title">Manage CMS</h6>
<div class="layout-px-spacing">
<div class="middle-content container-xxl p-0">
<div class="row layout-top-spacing ">
<div class="top-tabel">
<div class="row">
<div class="col-md-4">
<h6 class="card-title">Manage CMS</h6>
</div>
</div>
</div>
<div class="col-12 d-flex align-items-center gap-3 p-0 mb-4">
<div class="col-4">
<a href="{{ route('manage.Newarticles') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50"
src="{{ asset('public/assets/img/article-line.svg') }}" alt="">
<h4 class="m-0">News & Articles</h4>
</div>
</div>
</div>
</a>
</div>
</div>
<div class="col-12 d-flex align-items-center gap-3 p-0 mb-4">
<div class="col-4">
<a href="{{ route('manage.Newarticles') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/article-line.svg') }}" alt="">
<h4 class="m-0">News & Articles</h4>
</div>
</div>
</a>
</div>
<div class="col-4">
<a href="{{ route('manage.aboutUs') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/user (2) 1.svg') }}" alt="">
<h4 class="m-0">About Us</h4>
</div>
</div>
</a>
</div>
</div>
<div class="col-12 d-flex align-items-center gap-3 p-0 mb-4">
<div class="col-4">
<a href="{{ route('manage.terms') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/contract 1.svg') }}" alt="">
<h4 class="m-0">Terms & Conditions</h4>
</div>
</div>
</a>
</div>
<div class="col-4">
<a href="{{ route('manage.faq') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/conversation 3.svg') }}" alt="">
<h4 class="m-0">FAQ</h4>
</div>
</div>
</a>
</div>
<div class="col-4">
<a href="{{ route('manage.privacy') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/privacy.svg') }}" alt="">
<h4 class="m-0">Privacy Policy</h4>
</div>
</div>
</a>
</div>
<!-- <div class="col-4">
<a href="{{ route('manage.newLetter') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/quill_inbox-newsletter.svg') }}"
alt="">
<h4 class="m-0">Newsletter</h4>
</div>
</div>
</a>
</div> -->
<div class="col-4">
<a href="{{ route('manage.aboutUs') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/user (2) 1.svg') }}"
alt="">
<h4 class="m-0">About Us</h4>
</div>
</div>
</a>
</div>
<div class="col-4">
<a href="{{ route('manage.faq') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50"
src="{{ asset('public/assets/img/conversation 3.svg') }}" alt="">
<h4 class="m-0">FAQ</h4>
</div>
</div>
</a>
</div>
</div>
<div class="col-12 d-flex align-items-center gap-3 p-0 mb-4">
<div class="col-4">
<a href="{{ route('manage.terms') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/contract 1.svg') }}"
alt="">
<h4 class="m-0">Terms & Conditions</h4>
</div>
</div>
</a>
</div>
<div class="col-4">
<a href="{{ route('manage.privacy') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/privacy.svg') }}"
alt="">
<h4 class="m-0">Privacy Policy</h4>
</div>
</div>
</a>
</div>
<!-- <div class="col-4">
<a href="{{ route('manage.newLetter') }}">
<div class="card pointer">
<div
class="card-body d-flex flex-column justify-content-center align-items-center card-cms">
<img width="50" height="50" src="{{ asset('public/assets/img/quill_inbox-newsletter.svg') }}"
alt="">
<h4 class="m-0">Newsletter</h4>
</div>
</div>
</a>
</div> -->
</div>
</div>
</div>
@endsection
@section('section_script')
</div>
@endsection
@section('section_script')
@endsection

View File

@@ -141,7 +141,7 @@ $currentPage = 'manage-faq';
<!-- Edit Button -->
<a href="#" data-toggle="modal" data-target="#edit-faq-modal" class="edit-faq-btn" data-faq-id="{{ $faqs['id'] }}" data-faq-question="{{ $faqs['question'] }}" data-faq-answer="{{ $faqs['answers'] }}" data-faq-category="{{ $faqs['faq_category_id'] }}">
<img src="{{ asset('public/assets/img/edit.svg') }}" />
<span>Edit</span>
</a>
<!-- Delete Button -->
@@ -153,7 +153,7 @@ $currentPage = 'manage-faq';
<a href="#" class="delete_about" data-faq-id="{{ $faqs['id'] }}" data-toggle="modal" data-target="#delete-modal">
<img src="{{ asset('public/assets/img/delete-recycle.svg') }}" />
<span>Delete</span>
</a>
<input type="hidden" id="delete_about_id">

View File

@@ -108,13 +108,12 @@
<div class="col-md-3">
<label>{{ $day }} Start Time:</label>
<input type="time" class="form-control"
name="operating_hours[{{ $day }}][start_time]"
>
name="operating_hours[{{ $day }}][start_time]">
</div>
<div class="col-md-3">
<label>{{ $day }} End Time:</label>
<input type="time" class="form-control"
name="operating_hours[{{ $day }}][end_time]" >
name="operating_hours[{{ $day }}][end_time]">
</div>
</div>
@endforeach
@@ -167,7 +166,7 @@
</script>
<script>
var quill = new Quill('#news-quill-add', {
theme: 'snow'
});
theme: 'snow'
});
</script>
@endsection