@extends('layouts.front_vertical_menu') @section('customcss') @endsection @section('pagecontent')

{{ $title }}

@if(isset($total_amount))

@lang('frontsistema.trade_investment.balance_at'): {{ date('d M Y') }}

${{ number_format($total_amount, 2, '.', ',') }}

@endif
@if(isset($from) && isset($to))

@lang('frontsistema.home.from_date'): {{ $from }} @lang('frontsistema.home.to_date'): {{ $to }}

@else

@lang('frontsistema.home.last_ten_records'):

@endif

@php $total_amount = 0; $type = ''; $count = 0; @endphp @foreach($results as $result) @php $sign = '+'; if($result->trans_type == 0) { $type = 'ti'; if($result->tipo == 'cr') { $total_amount = $total_amount + $result->monto; }else{ $total_amount = $total_amount - $result->monto; $sign = '-'; } } elseif($result->trans_type == 1) { $type = 'mov'; if($result->operation_category == 1) { $total_amount = $total_amount + $result->monto; } else { $total_amount = $total_amount - $result->monto; $sign = '-'; } } elseif($result->trans_type == 2) { $type = 'trade'; $total_amount = $total_amount + $result->monto; } @endphp @if($result->trans_type == 1) @elseif($result->trans_type == 2) @elseif($result->is_opening) @elseif($result->tipo == 'cr') @else @endif @endforeach
@lang('frontsistema.trade_investment.ticket') @lang('frontsistema.trade_investment.date'): @lang('frontsistema.trade_investment.transaction'): @lang('frontsistema.trade_investment.expiration'): @lang('frontsistema.trade_investment.amount'): @lang('frontsistema.trade_investment.nav'): @lang('frontsistema.trade_investment.risk'):
{{ $result->ticket }} {{ date("d-m-Y", strtotime($result->fecha)) }} {{ $result->transaction }} {{ $sign }}{{ number_format($result->monto, 2, '.', ',') }} {{ $sign }}{{ number_format($result->monto, 2, '.', ',') }} LIQ {{ $sign }}{{ number_format($result->monto, 2, '.', ',') }} {{ number_format($result->nav, 2, '.', ',') }} LIQ{{ date("d-m-Y", strtotime($result->fecha_vencimiento)) }} {{ $sign }}{{ number_format($result->monto, 2, '.', ',') }} {{ number_format($result->nav, 2, '.', ',') }} {{ number_format($result->riesgo, 2, '.', ',') }}@lang('frontsistema.trade_investment.view_complete')
@endsection @section('customjs') @endsection