@yield('h4-page', 'Dashboard')
@if (request()->is('holiday'))
Download Template
Import Holiday
@endif
@if (session('locale') == 'en')
Eng (US) @elseif (session('locale') == 'th')
THA (TH) @elseif (session('locale') == 'zh')
CHN (ZH) @else
Eng (US) @endif
English
Thai
{{--
China
--}}
{{ __('chats') }}
0 Unread
{{--
Kara Young
1 hr ago
--}}
{{ __('notifications') }}
@if (auth()->user()->role_id != 3)
{{ __('readAllNoti') }}
@endif
@if (auth()->user()->role?->id == RoleEnums::RIDER)
@else
@endif
👋
{{ auth()->user()?->name }}
{{ auth()->user()?->role?->name }}
@if (auth()->user()?->role?->id == RoleEnums::RIDER) {{--
{{ __('profile') }}
--}} @else
{{ __('Admin') }}
@endif
{{ __('signout') }}
{{--
--}}
{{--
--}}
{{ __('dashboard') }}
@if (auth()->user()->role?->id == 1)
{{ __('users') }}
{{ __('profile') }}
{{ __('Permission') }}
@endif @if (auth()->user()->role?->id == 1 || auth()->user()->role?->id == 2)
{{--
--}}
{{ __('Customer') }}
@endif @if (auth()->user() ?->checkPermission('orders', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
@if (auth()->user()?->role?->id == 2 || auth()->user()->role?->id == 1)
@elseif (auth()->user()?->role?->id == 3)
@endif
{{--
--}}
{{ __('order') }}
@endif @if (auth()->user() ?->checkPermission('taxinvoice', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
@if (auth()->user()?->role?->id == 2 || auth()->user()->role?->id == 1)
@endif
{{ __('Taxinvoice') }}
@endif @if (auth()->user() ?->checkPermission('chats', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('chats') }}
@endif @if (auth()->user() ?->checkPermission('rating', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
@if (auth()->user()?->role?->id == 2 || auth()->user()->role?->id == 1)
@endif
{{ __('Rating') }}
@endif @if (auth()->user() ?->checkPermission('reports', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
report-text
{{ __('reports') }}
{{ __('ReportOrdeDate') }}
{{ __('ReportPopularService') }}
{{ __('ReportPopularProduct') }}
{{ __('ReportPopularPayment') }}
{{--
{{ __('ReportByCustomerOrder') }}
--}}
@endif @if (auth()->user() ?->checkPermission('announcement', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('Announcement') }}
@endif @if (auth()->user() ?->checkPermission('products', auth()->user()?->role?->id)?->view == 1 || auth()->user() ?->checkPermission('service', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('product and service') }}
@if (auth()->user() ?->checkPermission('service', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('services') }}
@endif @if (auth()->user() ?->checkPermission('products', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('products') }}
@endif
@endif @if (auth()->user() ?->checkPermission('riders', auth()->user()?->role?->id)?->view == 1 || auth()->user() ?->checkPermission('car_types', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('rider and car') }}
@if (auth()->user() ?->checkPermission('car_types', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('cars') }}
@endif @if (auth()->user() ?->checkPermission('riders', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('riders') }}
{{ __('ridersLocation') }}
{{ __('ridersLocationLog') }}
{{ __('Rider Payment') }}
@endif
@endif @if (auth()->user() ?->checkPermission('payment', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('payment') }}
@endif @if (auth()->user() ?->checkPermission('store_service', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('store') }}
@endif @if (auth()->user() ?->checkPermission('store_service', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('units') }}
@endif @if (auth()->user() ?->checkPermission('promotions', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('promotions') }}
@endif @if (auth()->user() ?->checkPermission('redeem_code', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('redeemCode') }}
@endif @if (auth()->user() ?->checkPermission('setting', auth()->user()?->role?->id)?->view == 1 || auth()->user()->role?->id == 1)
{{ __('setting') }}
{{ __('settingInformation') }}
{{ __('termsOfService') }}
{{ __('privacyAndPolicy') }}
{{ __('shippingDeliveryType') }}
{{ __('shippingUrgencyLevel') }}
{{ __('settingTime') }}
{{ __('settingPhone') }}
{{ __('settingCancelCondition') }}
{{ __('settingTaxinvoice') }}
{{ __('Auto Reply') }}
{{ __('Setting Email') }}
@endif @if (auth()->user()->role?->id == 2 || auth()->user()->role?->id == 1)
{{ __('holiday') }}
{{ __('Select Company') }}
@endif
{{ __('signout') }}
@yield('contents')
{{--
--}}
{{-- --}} @yield('scripts')