@php $configData = Helper::appClasses(); $stats = $stats ?? ['total' => 0, 'active' => 0, 'inactive' => 0, 'balance' => 0]; @endphp @extends('layouts/layoutMaster') @section('title', 'Repartidores') @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' ]) @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js' ]) @endsection @section('page-script') @endsection @section('content')
@if (session('success'))
{{ session('success') }}
@endif
Total

{{ $stats['total'] }}

Repartidores registrados
Activos

{{ $stats['active'] }}

En línea
Inactivos

{{ $stats['inactive'] }}

Sin actividad
Saldo total

€{{ number_format($stats['balance'], 2) }}

Monederos
Listado de repartidores
Nuevo repartidor
@foreach ($couriers as $courier) @endforeach
Nombre Zona Teléfono Saldo Retirado Estado Acciones
{{ strtoupper(substr($courier->name, 0, 2)) }}
{{ $courier->name }} {{ $courier->email ?? '—' }}
{{ $courier->zone?->name ?? '-' }} {{ $courier->phone ?? '-' }} €{{ number_format($courier->wallet_balance, 2) }} €{{ number_format($courier->wallet_withdrawn, 2) }} {{ $courier->is_active ? 'Activo' : 'Inactivo' }}
@csrf @method('DELETE')
@endsection