editor y administrador
This commit is contained in:
@@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
namespace App\Http\Livewire;
|
namespace App\Http\Livewire;
|
||||||
|
|
||||||
|
use App\Models\Log_general;
|
||||||
use App\Models\Log_historial;
|
use App\Models\Log_historial;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
|
|
||||||
class ShowLogGeneral extends Component
|
class ShowLogHistorial extends Component
|
||||||
{
|
{
|
||||||
public $entradas;
|
public $entradas;
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ class ShowLogGeneral extends Component
|
|||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
$query = Log_historial::query();
|
$query = Log_general::query();
|
||||||
|
|
||||||
if ($this->buscar) {
|
if ($this->buscar) {
|
||||||
$query->where('detalle', 'like', '%' . $this->buscar . '%');
|
$query->where('detalle', 'like', '%' . $this->buscar . '%');
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<x-ver-entrada />
|
<x-ver-entrada />
|
||||||
|
|
||||||
<x-primary-table>
|
<x-primary-table>
|
||||||
|
|||||||
@@ -49,18 +49,12 @@
|
|||||||
fill="#ffffff" />
|
fill="#ffffff" />
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
@if (auth()->user()->rol->nombre != 'editor')
|
@if (auth()->user()->rol->nombre != 'editor' && auth()->user()->rol->nombre != 'administrador')
|
||||||
<a x-on:click="modTarifas = true"
|
<a x-on:click="modTarifas = true" class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]">
|
||||||
class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]">
|
|
||||||
Modificar tarifas
|
Modificar tarifas
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" class="w-4 ml-2" x="0" y="0" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512" xml:space="preserve">
|
||||||
xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" class="w-4 ml-2" x="0" y="0"
|
<polygon points="14.604 5.687 0 20.29 0 24 3.71 24 18.313 9.396 14.604 5.687" fill="#ffffff" data-original="#000000" />
|
||||||
viewBox="0 0 24 24" style="enable-background:new 0 0 512 512" xml:space="preserve">
|
<path d="M23.232.768a2.624,2.624,0,0,0-3.71,0l-3.5,3.505,3.709,3.709,3.5-3.5A2.624,2.624,0,0,0,23.232.768Z" fill="#ffffff" data-original="#000000" />
|
||||||
<polygon points="14.604 5.687 0 20.29 0 24 3.71 24 18.313 9.396 14.604 5.687" fill="#ffffff"
|
|
||||||
data-original="#000000" />
|
|
||||||
<path
|
|
||||||
d="M23.232.768a2.624,2.624,0,0,0-3.71,0l-3.5,3.505,3.709,3.709,3.5-3.5A2.624,2.624,0,0,0,23.232.768Z"
|
|
||||||
fill="#ffffff" data-original="#000000" />
|
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -828,8 +828,10 @@
|
|||||||
</div>
|
</div>
|
||||||
@if ($total > auth()->user()->saldo->valor)
|
@if ($total > auth()->user()->saldo->valor)
|
||||||
<div class=" flex text-red-400 text-xs text-center justify-center gap-2 py-2 rounded-lg md:mx-2 2xl:mx-6">
|
<div class=" flex text-red-400 text-xs text-center justify-center gap-2 py-2 rounded-lg md:mx-2 2xl:mx-6">
|
||||||
<p class=""> No tiene fondo suficientes para esta compra, recargue su cuenta.</p>
|
<p>No tiene fondo suficientes para esta compra, recargue su cuenta.</p>
|
||||||
|
@if (auth()->user()->rol->nombre != 'editor' && auth()->user()->rol->nombre != 'super')
|
||||||
<a href="{{ route('recarga') }}"><button class="bg-green-600 text-white rounded px-2 py-1">Recargar</button></a>
|
<a href="{{ route('recarga') }}"><button class="bg-green-600 text-white rounded px-2 py-1">Recargar</button></a>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -307,11 +307,12 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
@if ($total > auth()->user()->saldo->valor)
|
@if ($total > auth()->user()->saldo->valor)
|
||||||
<div
|
<div class=" flex text-red-400 text-xs text-center justify-center gap-2 py-2 rounded-lg md:mx-2 2xl:mx-6">
|
||||||
class=" flex text-red-400 text-xs text-center justify-center gap-2 py-2 rounded-lg md:mx-2 2xl:mx-6">
|
<p>No tiene fondo suficientes para esta compra, recargue su cuenta.</p>
|
||||||
<p class=""> No tiene fondo suficientes para esta compra, recargue su cuenta.</p>
|
|
||||||
<a href="{{ route('recarga') }}"><button
|
@if (auth()->user()->rol->nombre != 'editor' && auth()->user()->rol->nombre != 'super')
|
||||||
class="bg-green-600 text-white rounded px-2 py-1">Recargar</button></a>
|
<a href="{{ route('recarga') }}"><button class="bg-green-600 text-white rounded px-2 py-1">Recargar</button></a>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -33,32 +33,28 @@
|
|||||||
</svg>
|
</svg>
|
||||||
Usuario
|
Usuario
|
||||||
</div>
|
</div>
|
||||||
<a x-on:click="add = !add"
|
@if (auth()->user()->rol->nombre !== 'administrador' && auth()->user()->rol->nombre !== 'editor')
|
||||||
class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8] mb-3 md:mb-0">Añadir
|
<a x-on:click="add = !add" class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8] mb-3 md:mb-0">Añadir usuario
|
||||||
usuario
|
<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-[0.87rem] ml-2">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
|
<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" />
|
||||||
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-[0.87rem] 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>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
<a x-on:click="modTarifas = true"
|
<a x-on:click="modTarifas = true"
|
||||||
class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]">Mod.
|
class="justify-center flex px-4 py-2 rounded-lg cursor-pointer text-white bg-[#B221FD] hover:bg-[#7a02b8]">Mod.
|
||||||
tarifas promos.
|
tarifas promos.
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" class="w-4 ml-2" x="0"
|
xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" class="w-4 ml-2" x="0"
|
||||||
y="0" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512"
|
y="0" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512"
|
||||||
xml:space="preserve">
|
xml:space="preserve">
|
||||||
<polygon points="14.604 5.687 0 20.29 0 24 3.71 24 18.313 9.396 14.604 5.687" fill="#ffffff"
|
<polygon points="14.604 5.687 0 20.29 0 24 3.71 24 18.313 9.396 14.604 5.687" fill="#ffffff"
|
||||||
data-original="#000000" />
|
data-original="#000000" />
|
||||||
<path
|
<path
|
||||||
d="M23.232.768a2.624,2.624,0,0,0-3.71,0l-3.5,3.505,3.709,3.709,3.5-3.5A2.624,2.624,0,0,0,23.232.768Z"
|
d="M23.232.768a2.624,2.624,0,0,0-3.71,0l-3.5,3.505,3.709,3.709,3.5-3.5A2.624,2.624,0,0,0,23.232.768Z"
|
||||||
fill="#ffffff" data-original="#000000" />
|
fill="#ffffff" data-original="#000000" />
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
@endif
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user