@extends('bootstrap.layouts.app') @section('content')
@php $url = explode("/",url()->current()); $all = ''; $cronpending = ''; $pending = ''; $processing = ''; $inprogress = ''; $completed = ''; $partial = ''; $canceled = ''; $fail = ''; $api = ''; if(isset($url[4])){ if($url[4] == 'cronpending'){ $cronpending = 'active'; } if($url[4] == 'pending'){ $pending = 'active'; } if($url[4] == 'processing'){ $processing = 'active'; } if($url[4] == 'inprogress'){ $inprogress = 'active'; } if($url[4] == 'completed'){ $completed = 'active'; } if($url[4] == 'partial'){ $partial = 'active'; } if($url[4] == 'canceled'){ $canceled = 'active'; } if($url[4] == 'fail'){ $fail = 'active'; } if($url[4] == 'api'){ $api = 'active'; } }else{ $all = 'active'; } @endphp
{{--
--}}
@if (Session::has('success')) @if (Session::get('success'))
{{ Session::get('success') }}
@endif @endif @if (Session::has('error')) @if (Session::get('error'))
{{ Session::get('error') }}
@endif @endif @if (isset($pageContent) && !is_null($pageContent) && ($pageContent->content_place == 'both' || $pageContent->content_place == 'top'))
{!! $pageContent->page_content_top !!}
@endif {{--
--}}
@if (isset($data)) @foreach ($data as $item) @php $html = ''; $error = ''; if ($item->order_status == 'completed') { $refill_24h = true; $refill_count = 0; if ($item->service_refill == 1) { $to = Carbon::createFromFormat( 'Y-m-d H:s:i', date('Y-m-d H:i:s'), ); $from = Carbon::createFromFormat( 'Y-m-d H:s:i', $item->order_create, ); $diff_in_hours = $to->diffInHours($from); // $from = strtotime($row->order_create); // $diff_in_hours = time() - $from; if ($diff_in_hours >= 24) { $refill_24h = true; $refill_count = 0; $refill_count = Refill::where( 'refill_order_id', $item->order_id, ) ->where('website_id', WEBSITE_ID) ->whereIn('refill_status', [ 'pending', 'awaiting', 'in progress', ]) ->get() ->count(); } else { $refill_count = 0; $refill_24h = false; } } if ($refill_24h == true) { if ($refill_count == 0) { $error .= 'true all'; $html = ''; } else { $error = 'refill false'; $html = ''; } } else { $error = 'time false'; $html = ''; } } else { $error = 'status false'; $html = ''; } $cancel = ''; if ($item->service_cancel == 1) { if ($item->order_status == 'pending') { $cancel = ''; } elseif ($item->order_status == 'canceled') { } else { $cancel = ''; } } else { $cancel = ''; } @endphp {{-- @if ($item['order_id'] == '34490417') {{dd($item);}} @endif --}} @endforeach @endif
ID Date Link Charge Start Count Quantity Service Status Remains Live Count Refill Cancel
{{ $item['order_id'] }} {{ $item['order_create'] }} {{ $item['order_url'] }} {{ $currency_detail->currency_symbol . '' . getCurrentCurrencyExchnage($item->order_charge, $currency_detail->currency_value) }} {{ $item['order_start'] }} {{ $item['order_quantity'] }} {{ $item['service_name'] }} {{ $item['order_status'] }} {{ $item['order_remains'] }}
@if (isset($pageContent) && !is_null($pageContent) && ($pageContent->content_place == 'both' || $pageContent->content_place == 'bottom'))
{!! $pageContent->page_content_bottom !!}
@endif
@endsection @section('script') @endsection