@extends('layouts.master') @section('content')

{{Lang::get('common.history.navigation.button.label')}}

@if(!empty($paymentList))
Пополнения
@if(is_array($paymentList)) @define $paymentList = Helper::sort_arr_of_obj($paymentList, 'Time') @foreach($paymentList as $key => $value) @endforeach @elseif(is_object($paymentList)) @endif
{{isset($value->Time)?Helper::convertDateFormat($value->Time):''}}
{{$value->Origin or ''}}
Сумма: {{Helper::convertValue($value->Sum)}} {{Lang::get('common.currencyAbbr')}}
{{isset($paymentList->Time)?Helper::convertDateFormat($paymentList->Time):''}}
{{$paymentList->Origin or ''}}
Сумма: {{Helper::convertValue($paymentList->Sum)}} {{Lang::get('common.currencyAbbr')}}
@if(is_array($paymentList)) @define $paymentList = Helper::sort_arr_of_obj($paymentList, 'Time') @foreach($paymentList as $key => $value) @endforeach @elseif(is_object($paymentList)) @endif @else @endif @if(!empty($purchaseList))
Покупки
@foreach($purchaseList as $key => $value) @if(is_array($value->E)) @define $value->E = Helper::sort_arr_of_obj($value->E, 'Type', 'purchase') @elseif(is_object($value->E)) @endif @endforeach
{{Helper::convertDateFormat($value->Time)}}
    @define $amount = null @define $sum = null @define $amountUnsorted = null @define $sumUnsorted = null @foreach($value->E as $key => $valueE) @if($valueE->Type == 1) @define $amount += $valueE->Amount @define $sum += $valueE->Amount * $valueE->Sum @endif @if($valueE->Type == 1)
  • {{$valueE->Name or ''}}
  • @endif @if($valueE->Type == 2)
  • {{$valueE->Name or ''}}
  • @endif @endforeach @if($sum != null)
  • Количество: {{$amount}} Сумма: {{ Helper::convertValue($sum)}} {{Lang::get('common.currencyAbbr')}}
  • @endif @foreach($value->E as $key => $valueE) @if($valueE->Type == 0)
  • {{$valueE->Name or ''}}
  • Количество: {{$valueE->Amount or 0}} Сумма: {{ Helper::convertValue($valueE->Amount * $valueE->Sum)}} {{Lang::get('common.currencyAbbr')}}
  • @endif @endforeach
{{Helper::convertDateFormat($value->Time)}}
  • {{$value->E->Name or ''}}
    Количество: {{$value->E->Amount or ''}} Сумма: {{ Helper::convertValue($value->E->Amount * $value->E->Sum)}} {{Lang::get('common.currencyAbbr')}}
@foreach($purchaseList as $key => $value) @if(is_array($value->E)) @define $value->E = Helper::sort_arr_of_obj($value->E, 'Type', 'purchase') @elseif(is_object($value->E)) @endif @endforeach @else @endif
@stop