@extends('layouts.header') @section('content') {{----}}
| ID | User | Order code | Name | Credit | Profit | Result | Date | Status | Edit | @foreach($serverorder as $v)
|---|---|---|---|---|---|---|---|---|---|
| {{$v->id}} | {{$v->user->user_name}} | {{$v->order_code}} | @if($v->serverservice == null) @else {{$v->serverservice->service_name}} @endif | {{number_format($v->credit_default_currency,2)}} | {{$v->credit_default_currency-($v->purchase_cost*$v->quantity)}} | @if($v->status == 'REJECTED') {!! $v->reject_reason !!} @else {!! $v->result !!} @endif | @if($v->status == 'COMPLETED') {{CUtil::convertDate($v->completed_on, 'd-m-Y h:i a') }} @elseif($v->status == 'REJECTED'){{CUtil::convertDate($v->date_rejected, 'd-m-Y h:i a') }} @else{{CUtil::convertDate($v->date_added, 'd-m-Y h:i a') }} @endif | {{$v->status}} | |
| Count | {{$count}} | {{$credit}} USD | {{$profit}} USD |