Finalizacion de la primera version del proyecto
This commit is contained in:
@@ -7,15 +7,15 @@
|
||||
<p class="font-bold">Fecha: <span class="font-light">{{ now()}}</span></p>
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
@role('admin')
|
||||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 grid grid-cols-3">
|
||||
|
||||
<div class="overflow-hidden flex">
|
||||
|
||||
<div class="overflow-hidden flex mb-4">
|
||||
<div class="card bg-backgroundPrimary flex flex-row items-center justify-around">
|
||||
<div class="card-body">
|
||||
<h2 class="font-bold uppercase tracking-wide text-content3">Ventas del dia</h2>
|
||||
<p class="font-black text-4xl">$ {{ $venta }}</p>
|
||||
<p class="font-black text-4xl text-center">$ {{ $movimiento }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-14 h-14 text-success">
|
||||
@@ -25,11 +25,54 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="overflow-hidden flex">
|
||||
<div class="overflow-hidden flex mb-4">
|
||||
<div class="card bg-backgroundPrimary flex flex-row items-center justify-around">
|
||||
<div class="card-body">
|
||||
<h2 class="font-bold uppercase tracking-wide text-content3">Abonos del dia</h2>
|
||||
<p class="font-black text-4xl">$ {{ $abono }}</p>
|
||||
<p class="font-black text-4xl text-center">$ {{ $abono }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-14 h-14 text-warning">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z" />
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="overflow-hidden flex mb-4">
|
||||
<div class="card bg-backgroundPrimary flex flex-row items-center justify-around">
|
||||
<div class="card-body">
|
||||
<h2 class="font-bold uppercase tracking-wide text-content3">Cancelaciones del dia</h2>
|
||||
<p class="font-black text-4xl text-center">$ {{ $cancelacion }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-14 h-14 text-error">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="overflow-hidden flex">
|
||||
<div class="card bg-backgroundPrimary flex flex-row items-center justify-around">
|
||||
<div class="card-body">
|
||||
<h2 class="font-bold uppercase tracking-wide text-content3">Numero de Ventas</h2>
|
||||
<p class="font-black text-4xl text-center"> {{ $num_movimiento }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-14 h-14 text-success">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 18L9 11.25l4.306 4.307a11.95 11.95 0 015.814-5.519l2.74-1.22m0 0l-5.94-2.28m5.94 2.28l-2.28 5.941" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="overflow-hidden flex">
|
||||
<div class="card bg-backgroundPrimary flex flex-row items-center justify-around">
|
||||
<div class="card-body">
|
||||
<h2 class="font-bold uppercase tracking-wide text-content3">Numero de Abonos</h2>
|
||||
<p class="font-black text-4xl text-center"> {{ $num_abono }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-14 h-14 text-warning">
|
||||
@@ -43,17 +86,41 @@
|
||||
<div class="overflow-hidden flex">
|
||||
<div class="card bg-backgroundPrimary flex flex-row items-center justify-around">
|
||||
<div class="card-body">
|
||||
<h2 class="font-bold uppercase tracking-wide text-content3">Cancelaciones del dia</h2>
|
||||
<p class="font-black text-4xl">$ {{ $cancelacion }}</p>
|
||||
<h2 class="font-bold uppercase tracking-wide text-content3">Numero de Cancelaciones</h2>
|
||||
<p class="font-black text-4xl text-center"> {{ $num_cancelacion }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-14 h-14 text-error">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="-14 h-14 text-error">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6L9 12.75l4.286-4.286a11.948 11.948 0 014.306 6.43l.776 2.898m0 0l3.182-5.511m-3.182 5.51l-5.511-3.181" />
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endrole
|
||||
|
||||
<input class="modal-state" wire:model="cajaModal" value="" id="modal-1" type="checkbox" />
|
||||
<div class="modal">
|
||||
<label class="modal-overlay"></label>
|
||||
<div class="modal-content flex flex-col gap-5 max-w-md w-1/2">
|
||||
|
||||
<h3 class="font-bold text-lg">Registrar Caja Inicial</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="caja_inicial" class="form-label font-bold">Caja inicial:</label>
|
||||
<input id="caja_inicial" wire:model="cajaInicial" type="number" step="any" placeholder="Registrar dinero inicial del turno" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('cajaInicial')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="flex gap-3">
|
||||
<button wire:click="save()" class="btn btn-success btn-block">Guardar</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -3,25 +3,31 @@
|
||||
<tr class="text-neutral">
|
||||
<th>Codigo</th>
|
||||
<th>Pago Efectivo</th>
|
||||
<th>Pago Tarjeta Debito</th>
|
||||
<th>Pago Tarjeta Credito</th>
|
||||
<th>Pago Tarjeta</th>
|
||||
<th>Pago Tarjeta Vales</th>
|
||||
<th>Pago Transferencia</th>
|
||||
<th>Suma Pagos</th>
|
||||
<th>Total a pagar</th>
|
||||
<th>Registrado por</th>
|
||||
<th>Tipo Venta</th>
|
||||
<th>Tipo de Movimiento</th>
|
||||
<th>Motivo</th>
|
||||
<th>Fecha</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($ventas as $venta)
|
||||
@foreach ($movimientos as $movimiento)
|
||||
<tr>
|
||||
<th>{{ $venta->codigo }}</th>
|
||||
<th>{{ $venta->pago_efectivo }}</th>
|
||||
<th>{{ $venta->pago_tarjeta_debito }}</th>
|
||||
<th>{{ $venta->pago_tarjeta_credito }}</th>
|
||||
<th>{{ $venta->pago_vales }}</th>
|
||||
<th>{{ $venta->user->name }}</th>
|
||||
<th>{{ $venta->estadoVenta->nombre }}</th>
|
||||
<th>{{ $venta->created_at }}</th>
|
||||
<th>{{ $movimiento->codigo }}</th>
|
||||
<th>{{ $movimiento->pago_efectivo }}</th>
|
||||
<th>{{ $movimiento->pago_tarjeta }}</th>
|
||||
<th>{{ $movimiento->pago_vales }}</th>
|
||||
<th>{{ $movimiento->pago_transferencia }}</th>
|
||||
<th>{{ $movimiento->totalAbono() }}</th>
|
||||
<th>{{ $movimiento->precio_venta }}</th>
|
||||
<th>{{ $movimiento->user->name }}</th>
|
||||
<th>{{ $movimiento->estadoMovimiento->nombre }}</th>
|
||||
<th>{{ $movimiento->motivo }}</th>
|
||||
<th>{{ $movimiento->created_at }}</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
<x-nav-link href="{{ route('cancelacion') }}" :active="request()->routeIs('cancelacion')">
|
||||
{{ __('Cancelacion') }}
|
||||
</x-nav-link>
|
||||
@role('admin')
|
||||
<x-nav-link href="{{ route('reporte') }}" :active="request()->routeIs('reporte')">
|
||||
{{ __('Reporte') }}
|
||||
</x-nav-link>
|
||||
@role('admin')
|
||||
<x-nav-link href="{{ route('usuarios') }}" :active="request()->routeIs('usuarios')">
|
||||
{{ __('Usuarios') }}
|
||||
</x-nav-link>
|
||||
|
||||
@@ -29,10 +29,8 @@
|
||||
<thead>
|
||||
<tr class="text-neutral">
|
||||
<th>Codigo</th>
|
||||
<th>Pago Efectivo</th>
|
||||
<th>Pago Tarjeta Debito</th>
|
||||
<th>Pago Tarjeta Credito</th>
|
||||
<th>Pago Tarjeta Vales</th>
|
||||
<th>Retorno de efectivo</th>
|
||||
<th>Motivo</th>
|
||||
<th>Registrado por</th>
|
||||
<th>Fecha</th>
|
||||
</tr>
|
||||
@@ -42,9 +40,7 @@
|
||||
<tr>
|
||||
<th>{{$cancelacion->codigo}}</th>
|
||||
<th>{{$cancelacion->pago_efectivo}}</th>
|
||||
<th>{{$cancelacion->pago_tarjeta_debito}}</th>
|
||||
<th>{{$cancelacion->pago_tarjeta_credito}}</th>
|
||||
<th>{{$cancelacion->pago_vales}}</th>
|
||||
<th>{{$cancelacion->motivo}}</th>
|
||||
<th>{{$cancelacion->user->name}}</th>
|
||||
<th>{{$cancelacion->created_at}}</th>
|
||||
|
||||
@@ -90,27 +86,12 @@
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="debito" class="form-label font-bold">Tarjeta Debito:</label>
|
||||
<input id="debito" wire:model="cancelacion.pago_tarjeta_debito" type="number" step="any" placeholder="Pago con tarjeta de debito" class="input max-w-full" />
|
||||
<label for="motivo" class="form-label font-bold">Motivo:</label>
|
||||
{{-- <input id="motivo" wire:model="cancelacion.motivo" type="text" placeholder="Motivo de cancelacion" class="input max-w-full" /> --}}
|
||||
<textarea id="motivo" wire:model="cancelacion.motivo" class="textarea-block textarea" placeholder="Motivo de cancelacion" ></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@error('cancelacion.pago_tarjeta_debito')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="credito" class="form-label font-bold">Tarjeta Credito:</label>
|
||||
<input id="credito" wire:model="cancelacion.pago_tarjeta_credito" type="number" step="any" placeholder="Pago con tarjeta de credito" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('cancelacion.pago_tarjeta_credito')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="vales" class="form-label font-bold">Tarjeta Vales:</label>
|
||||
<input id="vales" wire:model="cancelacion.pago_vales" type="number" step="any" placeholder="Pago con tarjeta de credito" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('cancelacion.pago_vales')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
@error('cancelacion.motivo')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="flex gap-3">
|
||||
<button wire:click="save()" class="btn btn-success btn-block">Guardar</button>
|
||||
|
||||
@@ -34,25 +34,29 @@
|
||||
<tr class="text-neutral">
|
||||
<th>Codigo</th>
|
||||
<th>Pago Efectivo</th>
|
||||
<th>Pago Tarjeta Debito</th>
|
||||
<th>Pago Tarjeta Credito</th>
|
||||
<th>Pago Tarjeta</th>
|
||||
<th>Pago Tarjeta Vales</th>
|
||||
<th>Pago Transferencia</th>
|
||||
<th>Suma Pagos</th>
|
||||
<th>Total a pagar</th>
|
||||
<th>Registrado por</th>
|
||||
<th>Tipo Venta</th>
|
||||
<th>Fecha</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($ventas as $venta)
|
||||
@foreach ($movimientos as $movimiento)
|
||||
<tr>
|
||||
<th>{{ $venta->codigo }}</th>
|
||||
<th>{{ $venta->pago_efectivo }}</th>
|
||||
<th>{{ $venta->pago_tarjeta_debito }}</th>
|
||||
<th>{{ $venta->pago_tarjeta_credito }}</th>
|
||||
<th>{{ $venta->pago_vales }}</th>
|
||||
<th>{{ $venta->user->name }}</th>
|
||||
<th>{{ $venta->estadoVenta->nombre }}</th>
|
||||
<th>{{ $venta->created_at }}</th>
|
||||
<th>{{ $movimiento->codigo }}</th>
|
||||
<th>{{ $movimiento->pago_efectivo }}</th>
|
||||
<th>{{ $movimiento->pago_tarjeta }}</th>
|
||||
<th>{{ $movimiento->pago_vales }}</th>
|
||||
<th>{{ $movimiento->pago_transferencia }}</th>
|
||||
<th>{{ $movimiento->totalAbono() }}</th>
|
||||
<th>{{ $movimiento->precio_venta }}</th>
|
||||
<th>{{ $movimiento->user->name }}</th>
|
||||
<th>{{ $movimiento->estadoMovimiento->nombre }}</th>
|
||||
<th>{{ $movimiento->created_at }}</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
<tr class="text-neutral">
|
||||
<th>Codigo</th>
|
||||
<th>Pago Efectivo</th>
|
||||
<th>Pago Tarjeta Debito</th>
|
||||
<th>Pago Tarjeta Credito</th>
|
||||
<th>Pago Tarjeta</th>
|
||||
<th>Pago Tarjeta Vales</th>
|
||||
<th>Pago Transferencia</th>
|
||||
<th>Total a pagar</th>
|
||||
<th>Registrado por</th>
|
||||
<th>Fecha</th>
|
||||
@@ -44,9 +44,9 @@
|
||||
@foreach ($ventas as $venta)
|
||||
<th>{{ $venta->codigo }}</th>
|
||||
<th>{{ $venta->pago_efectivo }}</th>
|
||||
<th>{{ $venta->pago_tarjeta_debito }}</th>
|
||||
<th>{{ $venta->pago_tarjeta_credito }}</th>
|
||||
<th>{{ $venta->pago_tarjeta }}</th>
|
||||
<th>{{ $venta->pago_vales }}</th>
|
||||
<th>{{ $venta->pago_transferencia }}</th>
|
||||
<th>{{ $venta->precio_venta }}</th>
|
||||
<th>{{ $venta->user->name }}</th>
|
||||
<th>{{ $venta->created_at }}</th>
|
||||
@@ -84,6 +84,14 @@
|
||||
</div>
|
||||
@error('ventaEspecial.codigo')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="vales" class="form-label font-bold">Precio Total:</label>
|
||||
<input id="vales" wire:model="ventaEspecial.precio_venta" type="number" step="any" placeholder="Pago con tarjeta de credito" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('ventaEspecial.precio_venta')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="efectivo" class="form-label font-bold">Efectivo:</label>
|
||||
@@ -94,19 +102,19 @@
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="debito" class="form-label font-bold">Tarjeta Debito:</label>
|
||||
<input id="debito" wire:model="ventaEspecial.pago_tarjeta_debito" type="number" step="any" placeholder="Pago con tarjeta de debito" class="input max-w-full" />
|
||||
<label for="tarjeta" class="form-label font-bold">Tarjeta:</label>
|
||||
<input id="tarjeta" wire:model="ventaEspecial.pago_tarjeta" type="number" step="any" placeholder="Pago con tarjeta de debito" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('ventaEspecial.pago_tarjeta_debito')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
@error('ventaEspecial.pago_tarjeta')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="credito" class="form-label font-bold">Tarjeta Credito:</label>
|
||||
<input id="credito" wire:model="ventaEspecial.pago_tarjeta_credito" type="number" step="any" placeholder="Pago con tarjeta de credito" class="input max-w-full" />
|
||||
<label for="pago_transferencia" class="form-label font-bold">Transferencia:</label>
|
||||
<input id="pago_transferencia" wire:model="ventaEspecial.pago_transferencia" type="number" step="any" placeholder="Pago con transferencia" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('ventaEspecial.pago_tarjeta_credito')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
@error('ventaEspecial.pago_transferencia')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
@@ -115,14 +123,6 @@
|
||||
</div>
|
||||
</div>
|
||||
@error('ventaEspecial.pago_vales')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="vales" class="form-label font-bold">Precio Total:</label>
|
||||
<input id="vales" wire:model="ventaEspecial.precio_venta" type="number" step="any" placeholder="Pago con tarjeta de credito" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('ventaEspecial.precio_venta')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="flex gap-3">
|
||||
<button wire:click="save()" class="btn btn-success btn-block">Guardar</button>
|
||||
@@ -139,7 +139,12 @@
|
||||
<h3 class="font-bold text-lg">Liquidar Venta Especial</h3>
|
||||
<div class="flex gap-5 justify-center">
|
||||
<h4 class="font-bold text-sm">Saldo abonado: <span class="text-success">{{ $abonado }}</span></h4>
|
||||
<h4 class="font-bold text-sm">Saldo a pagar: <span class="text-error">{{ $total_pagar }}</span></h4>
|
||||
<h4 class="font-bold text-sm"></span></h4>
|
||||
</div>
|
||||
|
||||
<div class="flex gap-5 justify-evenly">
|
||||
<h4 class="font-bold text-sm">Cambio: <span class="text-success">{{ $cambio }}</span></h4>
|
||||
<h4 class="font-bold text-sm">Saldo a pagar: <span class="text-error">{{ $faltante }}</span></h4>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@@ -160,19 +165,19 @@
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="debito" class="form-label font-bold">Tarjeta Debito:</label>
|
||||
<input id="debito" wire:model="ventaEspecial.pago_tarjeta_debito" type="number" step="any" placeholder="Pago con tarjeta de debito" class="input max-w-full" />
|
||||
<label for="tarjeta" class="form-label font-bold">Tarjeta:</label>
|
||||
<input id="tarjeta" wire:model="ventaEspecial.pago_tarjeta" type="number" step="any" placeholder="Pago con tarjeta" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('ventaEspecial.pago_tarjeta_debito')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
@error('ventaEspecial.pago_tarjeta')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="credito" class="form-label font-bold">Tarjeta Credito:</label>
|
||||
<input id="credito" wire:model="ventaEspecial.pago_tarjeta_credito" type="number" step="any" placeholder="Pago con tarjeta de credito" class="input max-w-full" />
|
||||
<label for="pago_transferencia" class="form-label font-bold">Transferencia:</label>
|
||||
<input id="pago_transferencia" wire:model="ventaEspecial.pago_transferencia" type="number" step="any" placeholder="Pago con transferencia" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('ventaEspecial.pago_tarjeta_credito')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
@error('ventaEspecial.pago_transferencia')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
|
||||
@@ -30,9 +30,10 @@
|
||||
<tr class="text-neutral">
|
||||
<th>Codigo</th>
|
||||
<th>Pago Efectivo</th>
|
||||
<th>Pago Tarjeta Debito</th>
|
||||
<th>Pago Tarjeta Credito</th>
|
||||
<th>Pago Tarjeta</th>
|
||||
<th>Pago Tarjeta Vales</th>
|
||||
<th>Pago Transferencia</th>
|
||||
<th>Total Venta</th>
|
||||
<th>Registrado por</th>
|
||||
<th>Fecha</th>
|
||||
</tr>
|
||||
@@ -41,9 +42,10 @@
|
||||
@forelse ($ventas as $venta)
|
||||
<th>{{ $venta->codigo }}</th>
|
||||
<th>{{ $venta->pago_efectivo }}</th>
|
||||
<th>{{ $venta->pago_tarjeta_debito }}</th>
|
||||
<th>{{ $venta->pago_tarjeta_credito }}</th>
|
||||
<th>{{ $venta->pago_tarjeta }}</th>
|
||||
<th>{{ $venta->pago_vales }}</th>
|
||||
<th>{{ $venta->pago_transferencia }}</th>
|
||||
<th>{{ $venta->precio_venta }}</th>
|
||||
<th>{{ $venta->user->name }}</th>
|
||||
<th>{{ $venta->created_at }}</th>
|
||||
</tr>
|
||||
@@ -68,6 +70,10 @@
|
||||
<label for="modal-1" class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</label>
|
||||
|
||||
<h3 class="font-bold text-lg">Registrar Venta</h3>
|
||||
<div class="flex gap-5 justify-evenly">
|
||||
<h4 class="font-bold text-sm">Cambio: <span class="text-success">{{ $cambio }}</span></h4>
|
||||
<h4 class="font-bold text-sm">Saldo a pagar: <span class="text-error">{{ $faltante }}</span></h4>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
@@ -77,6 +83,14 @@
|
||||
</div>
|
||||
@error('venta.codigo')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="precio_venta" class="form-label font-bold">Precio Venta:</label>
|
||||
<input id="precio_venta" wire:model="venta.precio_venta" type="number" step="any" placeholder="Pago total de los productos" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('venta.precio_venta')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="efectivo" class="form-label font-bold">Efectivo:</label>
|
||||
@@ -87,19 +101,19 @@
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="debito" class="form-label font-bold">Tarjeta Debito:</label>
|
||||
<input id="debito" wire:model="venta.pago_tarjeta_debito" type="number" step="any" placeholder="Pago con tarjeta de debito" class="input max-w-full" />
|
||||
<label for="tarjeta" class="form-label font-bold">Tarjeta:</label>
|
||||
<input id="tarjeta" wire:model="venta.pago_tarjeta" type="number" step="any" placeholder="Pago con tarjeta de credito o debito" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('venta.pago_tarjeta_debito')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
@error('venta.pago_tarjeta')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<label for="credito" class="form-label font-bold">Tarjeta Credito:</label>
|
||||
<input id="credito" wire:model="venta.pago_tarjeta_credito" type="number" step="any" placeholder="Pago con tarjeta de credito" class="input max-w-full" />
|
||||
<label for="pago_transferencia" class="form-label font-bold">Transferencia:</label>
|
||||
<input id="pago_transferencia" wire:model="venta.pago_transferencia" type="number" step="any" placeholder="Pago con transferencia" class="input max-w-full" />
|
||||
</div>
|
||||
</div>
|
||||
@error('venta.pago_tarjeta_credito')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
@error('venta.pago_transferencia')<span class="block text-sm mx-2 text-error">{{ $message }}</span>@enderror
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
|
||||
Reference in New Issue
Block a user