@extends('layouts.admin_layout.admin_layout') @section('content')
Sl.No | User Full Name | Phone No | Package | Registered On | Expires On | Credits Alloted | Used Credits | Remaining Credits | Tokens Alloted | Used | Remaining | Action |
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $no++ }} | @if ($user->name === 'guest') Free @else {{ $user->name }} @endif | @if (isset($user->phone)) +{{ $user->phone }} @else N/A @endif | @if ($user->login_mode === 'guest') @if ($user->pack_buy_date != null) {{ $user->pack_name ?? 'Free' }} @else Free @endif @elseif(Schema::hasColumn('users', 'pack_name')) {{ $user->pack_name }} @else {{ $user->login_mode }} @endif | {{ $user->pack_buy_date ? date('Y-m-d', strtotime($user->pack_buy_date)) : date('Y-m-d', strtotime($user->created_at)) }} | {{ $user->pack_exp_date ? date('Y-m-d', strtotime($user->pack_exp_date)) : 'N/A' }} | @if ($user->token) {{ $user->token->init_credits }} @else No Token @endif | @if ($user->token) @php $remainingTokens = $user->token->init_credits - $user->token->credits_count; @endphp {{ $remainingTokens }} @else No Token @endif | @if ($user->token) {{ $user->token->credits_count }} @else No Token @endif | @if ($user->token) {{ $user->token->tokens_buy }} @else No Token @endif | @if ($user->token) @php $remainingTokens = $user->token->tokens_buy - $user->token->token_count; @endphp {{ $remainingTokens }} @else No Token @endif | @if ($user->token) {{ $user->token->token_count }} @else No Token @endif | Edit |