Update source into github
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ $title ?? 'Thế Giới Số' }}</title>
|
||||
<meta name="robots" content="noindex">
|
||||
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<link href="{{ asset('lib/fontawesome/css/all.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('lib/toastr/toastr.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('lib/fui-toast/fuiToast.min.css') }}">
|
||||
|
||||
<!-- Meta Icon -->
|
||||
<link rel="icon" href="https://tgs.com.vn/wp-content/uploads/2020/11/cropped-logo-social-01-1-32x32.png"
|
||||
sizes="32x32" />
|
||||
<link rel="icon" href="https://tgs.com.vn/wp-content/uploads/2020/11/cropped-logo-social-01-1-192x192.png"
|
||||
sizes="192x192" />
|
||||
<link rel="apple-touch-icon"
|
||||
href="https://tgs.com.vn/wp-content/uploads/2020/11/cropped-logo-social-01-1-180x180.png" />
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--color-brand: {{ setting('brand_color') }};
|
||||
}
|
||||
|
||||
.box_fixRight .box_content .item.item_1 {
|
||||
background: url(<?= env('APP_URL') ?>/images/rsz_zalo.png) no-repeat left;
|
||||
}
|
||||
</style>
|
||||
@stack('stylesLivewire')
|
||||
@stack('viewStyles')
|
||||
</head>
|
||||
@@ -0,0 +1,37 @@
|
||||
<!doctype html>
|
||||
<html lang="vi" class="font-averta">
|
||||
@include('frontend.layouts.head')
|
||||
<x-livewire-assets />
|
||||
|
||||
<body
|
||||
class="before:content-[''] before:bg-gradient-to-b before:from-[#F66D2F] before:to-[#F66D2F] dark:before:from-darkmode-800 dark:before:to-darkmode-800 before:fixed before:inset-0 before:z-[-1]">
|
||||
|
||||
<div id="fui-toast"></div>
|
||||
|
||||
<div class="mt-[1rem] flex md:mt-0">
|
||||
@include('frontend.layouts.sidebar')
|
||||
<main
|
||||
class="relative min-h-screen min-w-0 flex-1 max-w-full
|
||||
rounded-tl-[30px] mt-3 md:rounded-bl-[30px] rounded-bl-[30px]
|
||||
rounded-tr-[30px] lg:!rounded-tr-0
|
||||
bg-slate-100 dark:bg-darkmode-700
|
||||
px-4 md:px-[22px] pb-10 md:mx-0 mx-3">
|
||||
<div
|
||||
class="absolute inset-0 mt-[1rem] ml-[-1rem] min-h-screen -z-1 bg-white/20 backdrop-blur-md rounded-tl-[30px] rounded-bl-[30px]">
|
||||
</div>
|
||||
@include('frontend.layouts.topbar')
|
||||
|
||||
@include('frontend.layouts.partials.bottom-topbar')
|
||||
<div class="py-3">
|
||||
@yield('content')
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@include('frontend.layouts.partials.floating')
|
||||
<!-- End Content -->
|
||||
@include('alerts')
|
||||
</div>
|
||||
@include('frontend.script')
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,65 @@
|
||||
<div x-data="{ open: false }" class="relative intro-x w-8 h-8">
|
||||
<!-- Avatar -->
|
||||
<button @click="open = !open" @click.away="open = false"
|
||||
class="w-8 h-8 rounded-full overflow-hidden shadow-lg image-fit zoom-in focus:outline-none">
|
||||
<img src="{{ asset('template/' . customer()?->avatar) ?? asset('images/avatar.png') }}" alt="Avatar">
|
||||
</button>
|
||||
|
||||
<!-- Dropdown -->
|
||||
<div x-show="open" x-cloak x-transition:enter="transition ease-out duration-200"
|
||||
x-transition:enter-start="opacity-0 scale-95" x-transition:enter-end="opacity-100 scale-100"
|
||||
x-transition:leave="transition ease-in duration-100" x-transition:leave-start="opacity-100 scale-100"
|
||||
x-transition:leave-end="opacity-0 scale-95"
|
||||
class="absolute right-0 mt-2 w-64 bg-primary text-white rounded-lg shadow-lg z-50" @click.away="open = false">
|
||||
<ul class="py-2 text-sm">
|
||||
<li class="px-4 py-2 border-b border-white/10">
|
||||
<div class="font-medium">{{ customer()?->firstname }} {{ customer()?->lastname }}
|
||||
|
||||
</div>
|
||||
<div class="text-xs text-white/70">{{ customer()?->email }}
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('user.information') }}" class="flex items-center px-4 py-2 hover:bg-white/10"
|
||||
wire:navigate>
|
||||
<i data-lucide="user" class="w-4 h-4 mr-2"></i> Thông tin cá nhân
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('recharge.index') }}" class="flex items-center px-4 py-2 hover:bg-white/10"
|
||||
wire:navigate>
|
||||
<i data-lucide="dollar-sign" class="w-4 h-4 mr-2"></i>
|
||||
Nạp tiền
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('user.password') }}" class="flex items-center px-4 py-2 hover:bg-white/10"
|
||||
wire:navigate>
|
||||
<i data-lucide="lock" class="w-4 h-4 mr-2"></i> Đổi mật khẩu
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('recharge.history') }}" class="flex items-center px-4 py-2 hover:bg-white/10"
|
||||
wire:navigate>
|
||||
<i data-lucide="minimize-2" class="w-4 h-4 mr-2"></i> Giao dịch
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" target="_blank" class="flex items-center px-4 py-2 hover:bg-white/10">
|
||||
<i data-lucide="bookmark" class="w-4 h-4 mr-2"></i> Hướng dẫn
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('ticket') }}" class="flex items-center px-4 py-2 hover:bg-white/10" wire:navigate>
|
||||
<i data-lucide="help-circle" class="w-4 h-4 mr-2"></i> Tickets
|
||||
</a>
|
||||
</li>
|
||||
<li class="border-t border-white/10 my-2"></li>
|
||||
<li>
|
||||
<a href="{{ route('user.logout') }}" class="flex items-center px-4 py-2 hover:bg-white/10">
|
||||
<i data-lucide="log-out" class="w-4 h-4 mr-2"></i> Đăng xuất
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="justify-between items-center pt-5 pb-3 md:flex hidden border-dashed border-b border-gray-300">
|
||||
<span class="text-primary text-xl">
|
||||
{{ __('Xin chào, :name 👋', ['name' => customer()?->firstname . ' ' . customer()?->lastname]) }}
|
||||
</span>
|
||||
|
||||
<div>
|
||||
@section('breadcrumbs')
|
||||
@include('frontend.layouts.partials.breadcrumbs')
|
||||
@show
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
@if (isset($breadcrumbs) && !empty($breadcrumbs->getBreadcrumbs()))
|
||||
<nav class="flex px-5 py-3 text-gray-700" aria-label="Breadcrumb">
|
||||
<ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
|
||||
@foreach ($breadcrumbs->getBreadcrumbs() as $item)
|
||||
@if ($loop->first)
|
||||
<li class="inline-flex items-center">
|
||||
<a href="{{ $item['url'] ?? '#' }}"
|
||||
class="inline-flex items-center text-sm text-gray-500 hover:text-primary-dark font-medium dark:text-gray-400 dark:hover:text-white">
|
||||
{{ $item['label'] }}
|
||||
</a>
|
||||
</li>
|
||||
@elseif (!$loop->last)
|
||||
<li>
|
||||
<div class="flex items-center">
|
||||
<svg class="rtl:rotate-180 block w-3 h-3 mx-1 text-gray-400" aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
||||
stroke-width="2" d="m1 9 4-4-4-4"/>
|
||||
</svg>
|
||||
<a href="{{ $item['url'] ?? '#' }}"
|
||||
class="ms-1 text-sm font-medium text-primary hover:text-primary-dark md:ms-2 dark:text-gray-400 dark:hover:text-white">
|
||||
{{ $item['label'] }}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
@else
|
||||
<li aria-current="page">
|
||||
<div class="flex items-center">
|
||||
<svg class="rtl:rotate-180 w-3 h-3 mx-1 text-gray-400" aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
||||
stroke-width="2" d="m1 9 4-4-4-4"/>
|
||||
</svg>
|
||||
<span class="ms-1 text-sm font-medium text-primary hover:text-primary-dark md:ms-2 dark:text-gray-400">
|
||||
{{ $item['label'] }}
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ol>
|
||||
</nav>
|
||||
@endif
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="box_fixRight">
|
||||
<div class="box_content">
|
||||
<a href="https://zalo.me/{{ setting('setting.zalo') }}" target="_blank" class="item item_1">Chat
|
||||
Zalo</a>
|
||||
<a href="https://www.facebook.com//{{ setting('setting.messenger') }}" target="_blank" class="item item_2">Chat
|
||||
Messenger</a>
|
||||
<a href="{{ route('cart.index') }}" target="_blank" class="item item_3">Giỏ hàng</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<nav class="side-nav hidden w-[90px] overflow-x-hidden pb-16 pr-5 md:block xl:w-[250px]">
|
||||
<a href="/" class="flex items-center pt-4 pl-5 intro-x">
|
||||
<img alt="Logo Thế Giới Số" style="width: 80%" class="w-6" src="{{ asset('images/thegioiso_logo_light.png') }}">
|
||||
</a>
|
||||
<div class="side-nav__divider my-6"></div>
|
||||
<x-siderbar-user/>
|
||||
</nav>
|
||||
@@ -0,0 +1,91 @@
|
||||
<div
|
||||
class="relative z-[51] min-h-[67px] sm:h-[67px] items-center justify-between border-b border-slate-200 flex flex-col sm:flex-row py-2 sm:py-0">
|
||||
<div class="left-top-bar px-4 md:px-0 w-full md:w-auto md:block hidden">
|
||||
<!-- BEGIN: Breadcrumb -->
|
||||
<nav id="left-quick-access-pc" class="flex-wrap gap-2 sm:gap-4 mr-auto lg:flex hidden">
|
||||
<!-- Hỗ trợ -->
|
||||
<a href="{{ route('ticket') }}" wire:navigate
|
||||
class="animate__animated animate__fadeInLeft items-center gap-2 text-sm text-primary hover:text-primary bg-white shadow-lg rounded-lg p-2 transition-transform duration-300 hover:translate-y-[10%] flex">
|
||||
<i class="fas fa-life-ring text-lg"></i>
|
||||
<div><span>{{ __('support') }}</span></div>
|
||||
</a>
|
||||
|
||||
<!-- Giao dịch -->
|
||||
<a href="{{ route('recharge.history') }}"
|
||||
class="animate__animated animate__fadeInLeft items-center gap-2 text-sm text-primary hover:text-primary bg-white shadow-lg rounded-lg p-2 transition-transform duration-300 hover:translate-y-[10%] flex">
|
||||
<i class="fas fa-exchange-alt text-lg"></i>
|
||||
<div><span>{{ __('Giao dịch') }}</span></div>
|
||||
</a>
|
||||
|
||||
<!-- Tạo VPS (dropdown) -->
|
||||
<div class="relative group">
|
||||
<a href="#"
|
||||
class="animate__animated animate__fadeInLeft items-center gap-2 text-sm text-primary hover:text-primary bg-white shadow-lg rounded-lg p-2 transition-transform duration-300 hover:translate-y-[10%] flex">
|
||||
<i class="fas fa-cloud text-lg"></i>
|
||||
<div><span>{{ __('Tạo VPS') }}</span></div>
|
||||
</a>
|
||||
<div
|
||||
class="absolute hidden group-hover:block bg-white shadow-md rounded mt-2 w-48 z-10 left-0 lg:left-auto lg:right-0">
|
||||
<a href="#" class="block px-4 py-2 hover:bg-gray-100 text-sm">Tạo VPS VN</a>
|
||||
<a href="#" class="block px-4 py-2 hover:bg-gray-100 text-sm">Tạo VPS GPU VN</a>
|
||||
<a href="#" class="block px-4 py-2 hover:bg-gray-100 text-sm">Tạo VPS US loại 1</a>
|
||||
<a href="#" class="block px-4 py-2 hover:bg-gray-100 text-sm">Tạo VPS UK</a>
|
||||
<a href="#" class="block px-4 py-2 hover:bg-gray-100 text-sm">Tạo VPS US loại 2</a>
|
||||
<a href="#" class="block px-4 py-2 hover:bg-gray-100 text-sm">Tạo VPS SINGAPORE</a>
|
||||
<a href="#" class="block px-4 py-2 hover:bg-gray-100 text-sm">Tạo VPS Hong Kong</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Dedicated Server -->
|
||||
<a href="#"
|
||||
class="animate__animated animate__fadeInLeft items-center gap-2 text-sm text-primary hover:text-primary bg-white shadow-lg rounded-lg p-2 transition-transform duration-300 hover:translate-y-[10%] flex">
|
||||
<i class="fas fa-server text-lg"></i>
|
||||
<div><span>{{ __('Dedicated Server') }}</span></div>
|
||||
</a>
|
||||
<!-- Hosting -->
|
||||
<a href="#"
|
||||
class="animate__animated animate__fadeInLeft items-center gap-2 text-sm text-primary hover:text-primary bg-white shadow-lg rounded-lg p-2 transition-transform duration-300 hover:translate-y-[10%] flex">
|
||||
<i class="fas fa-database text-lg"></i>
|
||||
<div><span>{{ __('Hosting') }}</span></div>
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="right-top-bar px-4 md:px-0 w-full sm:w-auto">
|
||||
<!-- BEGIN: Breadcrumb -->
|
||||
<nav id="right-access-account" class="flex gap-2 sm:gap-4 mr-auto items-center justify-end sm:justify-end">
|
||||
<div class="md:hidden block">
|
||||
<i data-lucide="menu" class="w-6 h-6"></i>
|
||||
</div>
|
||||
<div class="hidden lg:flex flex-wrap gap-2 sm:gap-4">
|
||||
<!-- Số dư -->
|
||||
<a href="#"
|
||||
class="animate__animated animate__fadeInLeft items-center gap-2 text-sm text-primary hover:text-primary bg-white shadow-lg rounded-lg p-2 transition-transform duration-300 hover:translate-y-[10%] flex">
|
||||
<div class="flex gap-2 items-center">
|
||||
<span>
|
||||
{{ __('balance') }}
|
||||
</span>
|
||||
<span class="text-red-600 font-bold">
|
||||
{{ format_price(auth('users')->user()->credit ?? 0) }}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<!-- Mobile Info Cards -->
|
||||
<div class="lg:hidden flex flex-wrap gap-2 justify-end w-full mt-2">
|
||||
<!-- Mobile Balance -->
|
||||
<div class="bg-white shadow-md rounded-lg p-2 text-center min-w-[80px]">
|
||||
<div class="text-xs text-gray-600">{{ __('balance') }}</div>
|
||||
<div class="text-sm font-bold text-red-600">{{ format_price(auth('users')->user()->credit ?? 0) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frontend.layouts.partials.account')
|
||||
|
||||
</nav>
|
||||
<!-- END: Breadcrumb -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user