@extends('voyager::master') @section("css") @stop @section('content')
@include('voyager::alerts') @include('voyager::dimmers')
@if(Auth::user()->role_id == 1 || Auth::user()->role_id == 4) @endif

Cuentas por Vencer


@if(setting('admin.account_expiration_days') > 0) @foreach(\App\Models\JellyfinCustomer::getNextExpiredAccounts() as $customer) @php $otherDate = date('Y-m-d', strtotime($customer->date_to)); $currentDate = date('Y-m-d'); $daysDifference = floor((strtotime($otherDate) - strtotime($currentDate)) / (60 * 60 * 24)); @endphp @if($daysDifference <= setting('admin.account_expiration_days')) @endif @endforeach @endif
Vendedor Cliente Servidor Dias Restantes Fecha Fin
@if(!empty($customer->user)) {{ $customer->user->name." ".$customer->user->email." (".$customer->user->role->name.")" }} @else Sin Usuario @endif {{ $customer->name." ".$customer->email }} {{ $customer->jellyfinserver ? $customer->jellyfinserver->name : 'Sin Resultado' }} {{ $daysDifference }} {{ date('d-m-Y', strtotime($customer->date_to)) }}
@if(Auth::user()->role_id == 1 || Auth::user()->role_id == 4)

Clientes x Servidor


@foreach(\App\Models\JellyfinServer::getCustomersByServer() as $server) @endforeach
Servidor Estado Cantidad de Clientes -
{{$server->name}} {{($server->status == 1) ? 'Activo': 'Inactivo'}} {{$server->jellyfincustomers->count()}}

Clientes x Vendedor


@foreach(\App\Models\User::getCustomersByReseller() as $user) @if($user->jellyfincustomers->count() > 0) @endif @endforeach
Vendedor Cantidad de Clientes -
{{$user->name_and_role}} {{$user->jellyfincustomers->count()}}
@endif
@stop @section('javascript') @if(isset($google_analytics_client_id) && !empty($google_analytics_client_id)) @endif @stop