@extends('admin.layout') @section('content')

{{ trans('Account Updates') }} @if ($results->count() > 0) Showing {{ ($results->currentPage() - 1) * $results->perPage() + 1 }} to {{ ($results->currentPage() - 1) * $results->perPage() + $results->count() }} of {{ $results->total() }} Results @endif

{{ trans('Account Updates') }}

@if (count($errors) > 0) @if($errors->any()) @endif @endif
{{ trans('labels.ClearSearch') }}
@if (count($results) > 0) @foreach ($results as $key => $whatsapp) @php $jsonData = json_decode($whatsapp->json_data, true); @endphp @endforeach @endif
{{ trans('Id') }} @if(request('sort_by') == 'id') @if(request('sort_type') == 'desc') @else @endif @else @endif {{ trans('Error Filed') }} {{ trans('Json Data') }} {{ trans('Created At') }} @if(request('sort_by') == 'created_at') @if(request('sort_type') == 'desc') @else @endif @else @endif
{{ $whatsapp->id}} {{ $whatsapp->error_filed}} @foreach($jsonData as $key => $value) {{ $key }}: @if (is_array($value)) {{-- If it's an array, convert it to a JSON string for display --}} {{ json_encode($value) }} @else {{ $value }} @endif
@endforeach
{{ $whatsapp->created_at}}
@if ($results->count() > 0) {{ $results->appends(request()->except('page'))->links() }} @endif
@endsection