@extends('main') @section('css') @endsection @section('content')
@if(session('message'))
@endif
{{-- --}}
@if(!empty($orders)) @foreach($orders as $o) @endforeach @endif
ID Order ID Order Agen Nama Agen Service Domain Template Status Created At Active At Options
{{ $o->id }} {{ $o->order_agent_id }} {{ $o->agent->name }} {{ $o->service }} {{ $o->domain }} {{ $o->template }} @if($o->status == 'Unpaid') unpaid @elseif($o->status == 'inactive') inactive @elseif($o->status == 'waiting for whmcs') waiting for whmcs @else active @endif {{ date('d-m-Y H:i:s', strtotime($o->created_at)) }} {{ $o->active_at ? date('d-m-Y H:i:s', strtotime($o->created_at)) : '-' }} @if($o->status === 'inactive' && $o->zone_id != NULL) @if(\App\Http\Controllers\ManagementAgentController::checkZoneStatus($o->zone_id) == 'active') @else Waiting cloudflare to activate zone @endif @endif @if($o->status == 'inactive') @if($o->zone_id) @if(\App\Http\Controllers\ManagementAgentController::checkZoneStatus($o->zone_id) == 'active') @else Waiting cloudflare to activate zone @endif @else @endif @endif @if($o->status == 'active') website active @endif @if($o->status == 'waiting for whmcs') @endif
@endsection @section('js') @endsection