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

Roulette logs

Total bets made: {{ $rollsAll->count() }} ({{ number_format($rollsAll->sum('value')) }} )

Balance: {{ number_format($rollsAll->sum('profit')) }}

Total bets won/lost: {{ $rollsAll->where('profit', '>', '0')->count() }} / {{ $rollsAll->where('profit', '<', '0')->count() }} ( {{ number_format($rollsAll->where('profit', '>', '0')->sum('profit')) }} / {{ number_format($rollsAll->where('profit', '<', '0')->sum('profit')) }} )

{{--

--}} {{--Total bets won:--}} {{--{{ $rolls->where('profit', '>', '0')->count() }}--}} {{--(--}} {{--{{ $rolls->where('profit', '>', '0')->sum('profit') }}--}} {{----}} {{--)--}} {{--

--}} {{--

--}} {{--Total bets lost:--}} {{--{{ $rolls->where('profit', '<', '0')->count() }}--}} {{--({{ $rolls->where('profit', '<', '0')->sum('profit') }}--}} {{----}} {{--)--}} {{--

--}} {{--

Max bet: {{ $rolls->max('value') }}

--}}

Max won bet/lost: +{{ number_format($rollsAll->max('profit')) }} / {{ number_format($rollsAll->min('profit')) }}

{{--

--}} {{--Max won bet:--}} {{----}} {{--+{{ $rolls->max('profit') }}--}} {{----}} {{----}} {{--

--}} {{--

--}} {{--Max lost bet:--}} {{----}} {{--{{ $rolls->min('profit') }}--}} {{----}} {{----}} {{--

--}}
@foreach($rolls as $roll) @endforeach
ID Time Amount Bet Roll Profit
{{ $roll->roll->id }} {{ $roll->created_at }} {{ number_format($roll->value) }} {{ $roll->color->diapason_begin }}-{{ $roll->color->diapason_end }} {{ $roll->roll->result }} {{ $roll->profit > 0 ? '+' : '' }}{{ number_format($roll->profit) }}
{{ $rolls->links() }}
@endsection