@extends('layout.main') @section('content')
Filter

@if(User::is_admin())
{{Form::select('account_owners',$account_owners,$userID,array("class"=>"select2"))}}
@endif

@if(isset($dashboardData['data']['TotalSales']))

Total Sales

For selected period
@if(isset($dashboardData['data']['PrevTotalSales'][0]->PrevTotalCharges) && $compare_with == 1) @endif @if(isset($dashboardData['data']['TotalSales'][0]->TotalCharges)) @endif @if(isset($dashboardData['data']['PrevTotalSales'][0]->PrevTotalCharges) && $compare_with == 1) @endif
Current SalesPrevious Sales
{{$dashboardData['data']['TotalSales'][0]->TotalCharges}}{{$dashboardData['data']['PrevTotalSales'][0]->PrevTotalCharges}}
@endif @if(isset($dashboardData['data']['TotalActiveAccount']))

Total Account

For selected period
@if(isset($dashboardData['data']['PrevTotalActiveAccount'][0]->prevtotalactive) && $compare_with == 1) @endif @if(isset($dashboardData['data']['PrevTotalInActiveAccount'][0]->prevtotalinactive) && $compare_with == 1) @endif @if(isset($dashboardData['data']['TotalActiveAccount'][0]->totalactive)) @endif @if(isset($dashboardData['data']['TotalInActiveAccount'][0]->totalinactive)) @endif @if(isset($dashboardData['data']['PrevTotalActiveAccount'][0]->prevtotalactive) && $compare_with == 1) @endif @if(isset($dashboardData['data']['PrevTotalInActiveAccount'][0]->prevtotalinactive) && $compare_with == 1) @endif
Active Account InActive AccountPrevious Active AccountPrevious InActive Account
{{$dashboardData['data']['TotalActiveAccount'][0]->totalactive}}{{$dashboardData['data']['TotalInActiveAccount'][0]->totalinactive}}{{$dashboardData['data']['PrevTotalActiveAccount'][0]->prevtotalactive}}{{$dashboardData['data']['PrevTotalInActiveAccount'][0]->prevtotalinactive}}
@endif
@if(isset($dashboardData['data']['AccountSales']))

Active Account Sales @if(isset($dashboardData['data']['TotalActiveAccount'][0]->totalactive))({{$dashboardData['data']['TotalActiveAccount'][0]->totalactive}})@endif

For selected period
@if($compare_with == 1) @endif @foreach($dashboardData['data']['AccountSales'] as $account) @if( $compare_with == 1) @if(isset($prevsales[$account->GatewayAccountID])) @else @endif @endif @endforeach
Account Name Current SalesPrevious Sales
{{$account->AccountName}} {{$account->TotalCharges}} {{$prevsales[$account->GatewayAccountID]}} 0.00
@endif @if(isset($dashboardData['data']['TotalInActiveAccountList']))

InActive Accounts @if(isset($dashboardData['data']['TotalInActiveAccount'][0]->totalinactive))({{$dashboardData['data']['TotalInActiveAccount'][0]->totalinactive}})@endif

For selected period
@foreach($dashboardData['data']['TotalInActiveAccountList'] as $account) @endforeach
Account Name
{{$account->AccountName}}
@endif
@if(isset($dashboardData['data']['PrevTotalInActiveAccountList']) && $compare_with == 1)

Previous InActive Accounts @if(isset($dashboardData['data']['PrevTotalInActiveAccount'][0]->prevtotalinactive) && $compare_with == 1)({{$dashboardData['data']['PrevTotalInActiveAccount'][0]->prevtotalinactive}})@endif

For selected period
@foreach($dashboardData['data']['PrevTotalInActiveAccountList'] as $account) @endforeach
Account Name
{{$account->AccountName}}
@endif
Top Destination
@if(isset($top_data))
@else
No Data Found
@endif @if( $compare_with == 1) @if(isset($prev_top_data))
@else
No Data Found
@endif @endif
Sales Chart
@if(isset($sales_data))
@else
No Data Found
@endif
@if(User::is_admin())
Leadership Chart
@if(isset($dashboardData['data']['SalesExecutive']) && count($dashboardData['data']['SalesExecutive']))
@else
No Data Found
@endif
@endif @stop