72 lines
4.2 KiB
PHP
Executable File
72 lines
4.2 KiB
PHP
Executable File
<nav
|
|
class="bg-[{{ App\Models\Configuracione::Orderby('id', 'desc')->first()->color_barra }}] border-b border-gray-100 rounded-b-3xl shadow ">
|
|
<!-- Primary Navigation Menu -->
|
|
<div class="md:w-[85%] mx-auto px-4 sm:px-6 lg:px-8 py-1">
|
|
<div class="flex justify-between h-16">
|
|
<div class="flex">
|
|
<!-- Logo -->
|
|
<div class="shrink-0 flex items-center">
|
|
<a href="{{ route('dashboard') }}">
|
|
<div
|
|
class="block w-[4rem] fill-current text-gray-600 b border border-gray-500 rounded-full overflow-hidden">
|
|
<x-application-logo />
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div
|
|
class="space-x-8 ml-1 pr-1 sm:ml-8 sm:pr-4 flex text-white font-semibold items-center border-r border-gray-500 my-2">
|
|
<div class=" text-sm md:text-xl ">
|
|
{{ App\Models\Configuracione::Orderby('id', 'desc')->first()->nombre }}</div>
|
|
</div>
|
|
<div class="space-x-8 ml-1 sm:-my-px sm:ml-4 flex text-white items-center my-2 align-middle">
|
|
<div class=" text-sm md:text-xl hidden sm:block ">
|
|
{{ App\Models\Configuracione::Orderby('id', 'desc')->first()->slogan }}</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex">
|
|
<livewire:bell />
|
|
{{-- @livewire('bell') --}}
|
|
|
|
|
|
|
|
<div class="space-x-8 sm:ml-8 sm:pr-4 flex text-white font-semibold items-center border-r border-gray-500/40 my-2 mx-1 pr-1">
|
|
<div class="text-sm sm:text-lg">$ {{ number_format(Auth::user()->saldo->valor) ?? '0' }}</div>
|
|
</div>
|
|
|
|
|
|
@if (auth()->user()->rol->nombre != 'editor' && auth()->user()->rol->nombre != 'administrador')
|
|
<div class="hidden sm:space-x-8 sm:-my-px sm:ml-6 md:flex text-white items-center">
|
|
<a href="{{ route('recarga') }}" class=" text-sm sm:text-base flex px-1 sm:px-4 py-2 rounded-lg bg-[{{ App\Models\Configuracione::Orderby('id', 'desc')->first()->color_boton }}] hover:bg-[#7a02b8]">Cargar
|
|
saldo
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512"
|
|
style="enable-background:new 0 0 512 512;" xml:space="preserve"
|
|
class="md:w-[0.87rem] w-[0.5rem] ml-1 sm:ml-2 ">
|
|
<path
|
|
d="M480,224H288V32c0-17.673-14.327-32-32-32s-32,14.327-32,32v192H32c-17.673,0-32,14.327-32,32s14.327,32,32,32h192v192 c0,17.673,14.327,32,32,32s32-14.327,32-32V288h192c17.673,0,32-14.327,32-32S497.673,224,480,224z"
|
|
fill="#ffffff" />
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
<div class="md:hidden space-x-8 flex text-white items-center">
|
|
<a href="{{ route('recarga') }}"
|
|
class=" text-sm sm:text-base flex px-1 sm:px-4 py-2 rounded-lg bg-[{{ App\Models\Configuracione::Orderby('id', 'desc')->first()->color_boton }}] hover:bg-[#7a02b8]">
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512"
|
|
style="enable-background:new 0 0 512 512;" xml:space="preserve" class="w-[1rem]">
|
|
<path
|
|
d="M480,224H288V32c0-17.673-14.327-32-32-32s-32,14.327-32,32v192H32c-17.673,0-32,14.327-32,32s14.327,32,32,32h192v192 c0,17.673,14.327,32,32,32s32-14.327,32-32V288h192c17.673,0,32-14.327,32-32S497.673,224,480,224z"
|
|
fill="#ffffff" />
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|