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') }}--}}
{{----}}
{{----}}
{{--
--}}
ID |
Time |
Amount |
Bet |
Roll |
Profit |
@foreach($rolls as $roll)
{{ $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) }}
|
@endforeach
{{ $rolls->links() }}