@extends('user.layout') @section('content')
@csrf
Reset
@php $sn = 1; @endphp @foreach ($datatables as $data) @php $user = DB::table('users')->where('user_id', $data->child_id)->first(); $earnings = DB::table('income_wallets')->where('user_id', $data->child_id)->first(); @endphp @endforeach
S/N Date Join Date User ID Name Earnings Status
{{ $loop->iteration }} {{ $data->created_at }} {{ $user->created_at }} {{ $data->child_id }} {{ $user->name }} {{ $earnings->total_earnings ?? 0 }} {{ $user->is_active == 0 ? 'Inactive' : 'Active' }}
@endsection