@php use App\Models\DigitalAsset; use App\Models\PLGame; use App\Models\PLOther; use App\Models\UserWallet; use Illuminate\Support\Facades\Log; $wallets = UserWallet::with('digitalAsset') ->where('user_id', $adminUser->id) ->where('quantity', '>', 0) ->whereHas('digitalAsset') ->get(); $externals = PLGame::select('id', 'name')->get(); $others = PLOther::select('id', 'name')->get(); @endphp
@foreach ($wallets as $item) @endforeach @foreach ($externals as $item) @endforeach @foreach ($others as $item) @endforeach
Id Date Name Cash{{ $item->digitalAsset->name }}{{ $item->name }}Ex.Total{{ $item->name }}