@php $pageConfigs = ['navbarType' => 'sticky', 'contentLayout' => 'wide']; $configData = Helper::appClasses(); @endphp @extends('layouts/layoutMaster') @section('title', 'Wallet') @section('vendor-style') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss' ]) @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', 'resources/assets/vendor/libs/cleave-zen/cleave-zen.js' ]) @endsection @section('page-script') @endsection @section('content')
Saldo

€{{ number_format($restaurant->wallet_balance ?? 0, 2) }}

Disponible
Costo entrega

€{{ number_format($restaurant->delivery_fee ?? 0, 2) }}

Por pedido
Movimientos

{{ $transactions->total() }}

Registros
Pedidos

{{ $deliveries->count() }}

Últimos 20
Movimientos
@forelse ($transactions as $tx) @empty @endforelse
Tipo Monto Saldo Descripción Fecha
{{ $tx->type }} €{{ number_format($tx->amount, 2) }} €{{ number_format($tx->balance_after, 2) }} {{ $tx->description ?? '-' }} {{ $tx->created_at->format('d/m/Y H:i') }}
Sin movimientos.
Pago de pedidos
@forelse ($deliveries as $delivery) @empty @endforelse
# Cliente Método Costo Estado Fecha
#{{ $delivery->id }} {{ $delivery->customer_name }} {{ $delivery->payment_method === 'cash' ? 'Efectivo' : 'Wallet' }} €{{ number_format($delivery->delivery_fee, 2) }} {{ ucfirst($delivery->status) }} {{ $delivery->created_at->format('d/m/Y H:i') }}
Sin pedidos todavía.
@endsection