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

Sales channel

@php $unknow_total_payment = 0; @endphp @foreach ($channeldata as $k => $c) @if(!empty($c->channel)) @php if($c->channel == "NULL" || empty($c->channel) || $c->channel == "UNKNOWN"){ $unknow_total_payment += $c->total_payment; $c->total_payment = $unknow_total_payment; } @endphp @endif @endforeach
Order Date Channel Count Total
{{ date('n/d/Y', strtotime($c->order_date)) }} {{ $c->channel }} {{ $c->orderidcount }} {{ (!empty($c) ? '$'.$c->total_payment : "$0.00") }}
@endsection