@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
Id | Date | Name | Cash | @foreach ($wallets as $item){{ $item->digitalAsset->name }} | @endforeach @foreach ($externals as $item){{ $item->name }} | @endforeachEx.Total | @foreach ($others as $item){{ $item->name }} | @endforeach
---|