@extends('page') @section('title', 'Dashboard') @section('content_header')

Dashboard

@stop @section('content')

{{($company->id == 1) ? $dashboard_data['total_labels']->sum('label_count') : $dashboard_data['total_labels'] }}

Total Labels

More info

{{($company->id == 1) ? $dashboard_data['total_printed_labels']->sum('label_count'): $dashboard_data['total_printed_labels']}}

Pinted Labels

More info

{{($company->id == 1) ? $dashboard_data['total_un_printed_labels']->sum('label_count') : $dashboard_data['total_un_printed_labels']}}

Un Pinted Labels

More info

{{$dashboard_data['order_count']}}

Total Orders

More info

Latest Orders

@if($dashboard_data['latest_orders']) @foreach($dashboard_data['latest_orders'] as $order) @endforeach @endif
Order ID Products Total Labels Status Date Added
#{{$order->id}} {{sizeof($order->products)}} {{$order->products->sum('label_count')}} @if($order->status == -1 && $order->print_status == 0 ) Approver Rejection @elseif($order->status == 0 && $order->print_status == 0 ) Rejected @elseif($order->status == 1 && $order->print_status == 0) Veification Pending @elseif($order->status == 2 && $order->print_status == 0) Verified @elseif($order->status == 3 && $order->print_status == 0) Approved @elseif($order->status == 4 && $order->print_status == 0) Printed @elseif($order->company_print_status == -1 && $order->print_status == 1 ) Company Approver Rejection @elseif($order->company_print_status == 0 && $order->print_status == 1 ) Company Rejected @elseif($order->company_print_status == 1 && $order->print_status == 1) @if($company->id != 1) Transfered to getOroigin @else New Order @endif @elseif($order->company_print_status == 2 && $order->print_status == 1) @if($company->id != 1) Company Verified @else Verified @endif @elseif($order->company_print_status == 3 && $order->print_status == 1) @if($company->id != 1) Company @else Approved @endif @elseif($order->company_print_status == 4 && $order->print_status == 1) Printed @endif
{{date('d-M-Y', strtotime($order->created_at))}}
@stop @section('css') @stop @section('js') @stop