@extends('home.index') @section('main')

Offers

{{-- for allpause and active switch --}} All Active @php // Decode the response $response = json_decode($response, true); @endphp @if(isset($response['results'])) @else @include('home.token') @php exit; @endphp @endif @foreach ($response['results'] as $index => $offer) @php $status = $offer['offerState']; $offerId = $offer['id']; @endphp @endforeach
# Offer Title Device Game Price (USD) Guaranteed Delivery Expire Date Offer State Action Menu
{{ $index +=1 }} {{ $offer['offerTitle'] }} {{ $offer['tradeEnvironmentValues'][0]['value']}} @if(isset($offer['offerAttributeIdValues'][0]['value'])) {{ $offer['offerAttributeIdValues'][0]['value'] }} @else N/A @endif {{ $offer['pricePerUnit']['amount'] }} USD {{ $offer['guaranteedDeliveryTime'] }} {{ $offer['expireDate'] }} {{ $offer['offerState'] }}
Delete
@php // Ensure the 'page' is treated as an integer and defaults to 1 if not provided $page = intval(request()->get('page', 1)); // Cast to integer and default to 1 $prv = $page - 1; $next = $page + 1; @endphp
{{-- Previous Button --}}
{{-- Next Button --}}
{{-- for delete alert --}} {{-- for update offer status --}} @endsection