• {{ __('Admin') }}
  • {{ __('Orders') }}
  • {{--
    --}}

    Orders

    Orders with No Transactions All Orders @for ($i = 0; $i < $orders->count(); $i++) @endfor @php $ttl = 0; $refundttl = 0; $thisorder = 0; @endphp {{-- @foreach ($unpaid_orders as $order) --}} @foreach ($orders as $order) @php if($order->voided == 1) { $thisorder = 0; } else { $thisorder = $order->amount; } @endphp @php $ttl = $ttl + $thisorder; @endphp @endforeach
    ID Order Date Transaction Customer Role New? Opt-In? Refunds Amount
    {{$order->id}} {{ date('m/d/Y g:i a',strtotime($order->created_at)) }} @if($order->transaction) {{ substr($order->transaction->transaction_no, 0, 18)}} @else
    No Transaction!
    @endif
    {{ $order->user->fullname }} @if($order->comments)
    Customer Comment: {!! $order->comments !!} @endif @if($order->admin_comments)
    Admin Comment: {!! $order->admin_comments !!} @endif
    {{ $order->user->role->display_name }} @if($order->user->created_at > $reg_startdate) @endif @if($order->user->email_opt_in == 1) @else @endif @if($order->voided == 1) ${{ number_format($order->amount,2) }} @php $refundttl = $refundttl + $order->amount; @endphp @endif ${{ number_format($thisorder,2) }}
    Totals ${{ number_format($refundttl,2)}} ${{ number_format($ttl,2)}}
    {{$orders->links()}}
    {{-- --}}