Commit 800108b6 authored by ZeMKI's avatar ZeMKI
Browse files

Update app.blade.php

parent 8e0462a6
......@@ -5,36 +5,48 @@
@livewireScripts
@include('lingua::layouts.mainnav')
<div class="flex items-center" id="app">
@include('lingua::layouts.mainnav')<div class="flex items-center">
<livewire:toast-message-show>
<div class="w-2/3 mx-auto mx-10">
@if(in_array(auth()->user()->email, config('lingua.translator')) || in_array(auth()->user()->email, config('lingua.admin')))
<div class="flex items-center justify-center mb-2">
<div class="flex items-center justify-center mb-2">
@if(in_array(auth()->user()->email, config('lingua.translator')) || in_array(auth()->user()->email, config('lingua.admin')))
<div class="mr-2">
<a @if(\Route::current()->getName() != 'lingua.index') href="{{route('lingua.index')}}" @endif
class="bg-white font-bold rounded border-b-2 border-blue-500 select-none hover:border-blue-600 hover:bg-blue-500 hover:text-white shadow-md py-2 px-6 inline-flex items-center
@if(\Route::current()->getName() == 'lingua.index') bg-blue-500 text-white cursor-none hover:text-white shadow-inner @endif
class="bg-white font-bold border-b-2 border-blue-500 select-none hover:border-blue-600 hover:bg-blue-500 hover:text-white shadow-md py-2 px-6 inline-flex items-center
@if(\Route::current()->getName() == 'lingua.index') bg-blue-500 border-blue-600 text-white cursor-none hover:text-white shadow-inner @endif
">
<span class="mr-2">Dashboard</span>
</a>
</div>
@endif
@if(in_array(auth()->user()->email, config('lingua.admin')))
<div class="">
<a @if(\Route::current()->getName() != 'lingua.create') href="{{route('lingua.create')}}" @endif
class="bg-white font-bold rounded border-b-2 border-blue-500 select-none hover:border-blue-600 hover:bg-blue-500 hover:text-white shadow-md py-2 px-6 inline-flex items-center
@if(\Route::current()->getName() == 'lingua.create') bg-blue-500 text-white cursor-none disabled hover:text-white @endif
">
<span class="mr-2">Upload</span>
</a>
</div>
</div>
@endif
@endif
@if(in_array(auth()->user()->email, config('lingua.admin')))
<div class="mr-2">
<a @if(\Route::current()->getName() != 'lingua.create') href="{{route('lingua.create')}}" @endif
class="bg-white font-bold border-b-2 border-blue-500 select-none hover:border-blue-600 hover:bg-blue-500 hover:text-white shadow-md py-2 px-6 inline-flex items-center
@if(\Route::current()->getName() == 'lingua.create') bg-blue-500 border-blue-600 text-white cursor-none disabled hover:text-white @endif
">
<span class="mr-2">Upload</span>
</a>
</div>
@endif
@if(in_array(auth()->user()->email, config('lingua.admin')))
<div class="">
<a @if(\Route::current()->getName() != 'lingua.conflicts') href="{{route('lingua.conflicts')}}" @endif
class="bg-white font-bold border-b-2 border-blue-500 select-none hover:border-blue-600 hover:bg-blue-500 hover:text-white shadow-md py-2 px-6 inline-flex items-center
@if(\Route::current()->getName() == 'lingua.conflicts') bg-blue-500 border-blue-600 text-white cursor-none disabled hover:text-white @endif
">
<span class="mr-2">Conflicts dashboard</span>
</a>
</div>
@endif
</div>
@yield('content')
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment