Mas ajustes de estilos y iconos
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
|
||||
<button class="btn" type="submit">
|
||||
@if($this->currentCalculo)
|
||||
<i class="ti ti-device-floppy text-lg"></i>
|
||||
<x-icons.device-floppy/>
|
||||
Guardar
|
||||
@else
|
||||
<i class="ti ti-plus text-lg"></i>
|
||||
<x-icons.plus/>
|
||||
Agregar
|
||||
@endif
|
||||
</button>
|
||||
@@ -51,10 +51,10 @@
|
||||
<td>{{$row->descripcion}}</td>
|
||||
<td class="w-0 whitespace-nowrap">
|
||||
<button class="btn btn-circle btn-sm" wire:click="edit('{{$row->id}}')">
|
||||
<i class="ti ti-edit"></i>
|
||||
<x-icons.edit class="w-5 h-5"/>
|
||||
</button>
|
||||
<button class="btn btn-circle btn-error btn-sm" wire:click="confirmDelete('{{$row->id}}')">
|
||||
<i class="ti ti-trash"></i>
|
||||
<x-icons.trash class="w-5 h-5"/>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
|
||||
<button class="btn" type="submit">
|
||||
@if($this->currentDocumento)
|
||||
<i class="ti ti-device-floppy text-lg"></i>
|
||||
<x-icons.device-floppy/>
|
||||
Guardar
|
||||
@else
|
||||
<i class="ti ti-plus text-lg"></i>
|
||||
<x-icons.plus/>
|
||||
Agregar
|
||||
@endif
|
||||
</button>
|
||||
@@ -65,10 +65,10 @@
|
||||
<td>{{Number::currency($row->valor)}}</td>
|
||||
<td class="w-0 whitespace-nowrap">
|
||||
<button class="btn btn-circle btn-sm" wire:click="edit('{{$row->id}}')">
|
||||
<i class="ti ti-edit"></i>
|
||||
<x-icons.edit class="w-5 h-5"/>
|
||||
</button>
|
||||
<button class="btn btn-circle btn-error btn-sm" wire:click="confirmDelete('{{$row->id}}')">
|
||||
<i class="ti ti-trash"></i>
|
||||
<x-icons.trash class="w-5 h-5"/>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
|
||||
<button class="btn" type="submit">
|
||||
@if($this->currentEgreso)
|
||||
<i class="ti ti-device-floppy text-lg"></i>
|
||||
<x-icons.device-floppy/>
|
||||
Guardar
|
||||
@else
|
||||
<i class="ti ti-plus text-lg"></i>
|
||||
<x-icons.plus/>
|
||||
Agregar
|
||||
@endif
|
||||
</button>
|
||||
@@ -75,10 +75,10 @@
|
||||
<td>{{Number::currency($row->valor)}}</td>
|
||||
<td class="w-0 whitespace-nowrap">
|
||||
<button class="btn btn-circle btn-sm" wire:click="edit('{{$row->id}}')">
|
||||
<i class="ti ti-edit"></i>
|
||||
<x-icons.edit class="w-5 h-5"/>
|
||||
</button>
|
||||
<button class="btn btn-circle btn-error btn-sm" wire:click="confirmDelete('{{$row->id}}')">
|
||||
<i class="ti ti-trash"></i>
|
||||
<x-icons.trash class="w-5 h-5"/>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
|
||||
<button class="btn " type="submit">
|
||||
@if($this->currentIngreso)
|
||||
<i class="ti ti-device-floppy text-lg"></i>
|
||||
<x-icons.device-floppy/>
|
||||
Guardar
|
||||
@else
|
||||
<i class="ti ti-plus text-lg"></i>
|
||||
<x-icons.plus/>
|
||||
Agregar
|
||||
@endif
|
||||
</button>
|
||||
@@ -75,10 +75,10 @@
|
||||
<td>{{Number::currency($row->total)}}</td>
|
||||
<td class="w-0 whitespace-nowrap">
|
||||
<button class="btn btn-circle btn-sm" wire:click="edit('{{$row->id}}')">
|
||||
<i class="ti ti-edit"></i>
|
||||
<x-icons.edit class="w-5 h-5"/>
|
||||
</button>
|
||||
<button class="btn btn-circle btn-error btn-sm" wire:click="confirmDelete('{{$row->id}}')">
|
||||
<i class="ti ti-trash"></i>
|
||||
<x-icons.trash class="w-5 h-5"/>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</x-title>
|
||||
|
||||
<button class="btn" wire:navigate href="{{route('cajas.index')}}">
|
||||
<i class="ti ti-arrow-left"></i>
|
||||
<x-icons.arrow-left/>
|
||||
Volver
|
||||
</button>
|
||||
</div>
|
||||
@@ -31,31 +31,31 @@
|
||||
<button role="tab" class="tab gap-2"
|
||||
:class="tab === 'Ingresos' ? 'tab-active' : ''"
|
||||
@click="tab = 'Ingresos'">
|
||||
<i class="ti ti-plus"></i>
|
||||
<x-icons.plus class="w-5 h-5"/>
|
||||
Ingresos
|
||||
</button>
|
||||
<button role="tab" class="tab gap-2"
|
||||
:class="tab === 'Egresos' ? 'tab-active' : ''"
|
||||
@click="tab = 'Egresos'">
|
||||
<i class="ti ti-minus"></i>
|
||||
<x-icons.minus class="w-5 h-5"/>
|
||||
Egresos
|
||||
</button>
|
||||
<button role="tab" class="tab gap-2"
|
||||
:class="tab === 'Documentos' ? 'tab-active' : ''"
|
||||
@click="tab = 'Documentos'">
|
||||
<i class="ti ti-credit-card"></i>
|
||||
<x-icons.credit-card class="w-5 h-5"/>
|
||||
Documentos
|
||||
</button>
|
||||
<button role="tab" class="tab gap-2"
|
||||
:class="tab === 'Calculo de Fondo' ? 'tab-active' : ''"
|
||||
@click="tab = 'Calculo de Fondo'">
|
||||
<i class="ti ti-plus-minus"></i>
|
||||
<x-icons.plus-minus class="w-5 h-5"/>
|
||||
Calculo de Fondo
|
||||
</button>
|
||||
<button role="tab" class="tab gap-2"
|
||||
:class="tab === 'Efectivo' ? 'tab-active' : ''"
|
||||
@click="tab = 'Efectivo'">
|
||||
<i class="ti ti-currency-dollar"></i>
|
||||
<x-icons.currency-dollar class="w-5 h-5"/>
|
||||
Efectivo
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
|
||||
<div class="flex flex-col sm:flex-row gap-2 justify-between items-baseline mb-4">
|
||||
<x-title>Cajas</x-title>
|
||||
<button class="btn" wire:click="createTurno" icon="plus">Registrar Caja</button>
|
||||
<button class="btn" wire:click="createTurno">
|
||||
<x-icons.plus/>
|
||||
Registrar Caja
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="flex mb-4">
|
||||
@@ -34,10 +37,10 @@
|
||||
<td class="{{$row->arqueo >= 0 ? 'text-green-500' : 'text-red-500'}}">{{Number::currency($row->arqueo)}}</td>
|
||||
<td class="w-0 whitespace-nowrap">
|
||||
<a class="btn btn-circle btn-sm" wire:navigate href="{{route('cajas.edit', $row->id)}}">
|
||||
<i class="ti ti-edit"></i>
|
||||
<x-icons.edit class="w-5 h-5"/>
|
||||
</a>
|
||||
<button class="btn btn-circle btn-error btn-sm" wire:click="confirmDelete('{{$row->id}}')">
|
||||
<i class="ti ti-trash"></i>
|
||||
<x-icons.trash class="w-5 h-5"/>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -8,29 +8,65 @@
|
||||
</div>
|
||||
|
||||
<form wire:submit.prevent="save">
|
||||
<x-card class="space-y-4">
|
||||
<x-input label="Nombre" wire:model="name"/>
|
||||
<x-input label="Correo Electrónico" wire:model="email"/>
|
||||
<x-select.styled label="Roles" :options="$this->availableRoles" select="label:title|value:id" multiple
|
||||
wire:model="roles"/>
|
||||
<label class="form-control">
|
||||
<div class="label">
|
||||
<span class="label-text">Nombre</span>
|
||||
</div>
|
||||
<input class="input input-bordered" wire:model="name"/>
|
||||
</label>
|
||||
|
||||
@if($this->user)
|
||||
<x-checkbox label="Cambiar contraseña" wire:model.live="change_password"/>
|
||||
@endif
|
||||
<label class="form-control">
|
||||
<div class="label">
|
||||
<span class="label-text">Correo Electrónico</span>
|
||||
</div>
|
||||
<input type="email" class="input input-bordered" wire:model="email"/>
|
||||
</label>
|
||||
|
||||
@if(!$this->user || $change_password)
|
||||
<x-password label="Contraseña" wire:model="password"/>
|
||||
<x-password label="Confirmación de la contraseña" wire:model="password_confirmation"/>
|
||||
@endif
|
||||
|
||||
<x-slot:footer>
|
||||
<x-button wire:navigate :href="route('usuarios.index')" icon="arrow-left" color="secondary">
|
||||
Volver
|
||||
</x-button>
|
||||
<x-button type="submit" icon="plus">
|
||||
Guardar
|
||||
</x-button>
|
||||
</x-slot:footer>
|
||||
</x-card>
|
||||
<label class="form-control">
|
||||
<div class="label">
|
||||
<span class="label-text">Roles</span>
|
||||
</div>
|
||||
<select class="select select-bordered" required wire:model="roles" multiple>
|
||||
@foreach($this->availableRoles as $role)
|
||||
<option value="{{$role->id}}">{{$role->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@if($this->user)
|
||||
<div class="form-control">
|
||||
<label class="label cursor-pointer w-0 whitespace-nowrap space-x-4">
|
||||
<span class="label-text">Cambiar contraseña</span>
|
||||
<input type="checkbox" class="toggle" wire:model.live="change_password"/>
|
||||
</label>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(!$this->user || $change_password)
|
||||
<label class="form-control">
|
||||
<div class="label">
|
||||
<span class="label-text">Contraseña</span>
|
||||
</div>
|
||||
<input type="password" class="input input-bordered" wire:model="password"/>
|
||||
</label>
|
||||
<label class="form-control">
|
||||
<div class="label">
|
||||
<span class="label-text">Confirmación de la contraseña</span>
|
||||
</div>
|
||||
<input type="password" class="input input-bordered" wire:model="password_confirmation"/>
|
||||
</label>
|
||||
@endif
|
||||
|
||||
<div class="flex justify-end gap-2 mt-4">
|
||||
<a wire:navigate href="{{route('usuarios.index')}}" class="btn">
|
||||
<x-icons.arrow-left/>
|
||||
Volver
|
||||
</a>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<x-icons.plus/>
|
||||
Guardar
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@can('create', User::class)
|
||||
<button class="btn" href="{{route('usuarios.create')}}" wire:navigate>
|
||||
<i class="ti ti-plus text-lg"></i>
|
||||
<x-icons.plus/>
|
||||
Registrar Usuario
|
||||
</button>
|
||||
@endcan
|
||||
@@ -29,10 +29,10 @@
|
||||
<td>{{$row->email}}</td>
|
||||
<td class="w-0 whitespace-nowrap">
|
||||
<a class="btn btn-circle btn-sm" wire:navigate href="{{route('usuarios.edit', $row->id)}}">
|
||||
<i class="ti ti-edit"></i>
|
||||
<x-icons.edit class="w-5 h-5"/>
|
||||
</a>
|
||||
<button class="btn btn-circle btn-error btn-sm" wire:click="confirmDelete('{{$row->id}}')">
|
||||
<i class="ti ti-trash"></i>
|
||||
<x-icons.trash class="w-5 h-5"/>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user