@extends('layout') @section('title', 'Earning') @section('content')
@if (session()->has('success')) @endif @if (session()->has('error')) @endif

{{ __('text.earning') }} @if(session('currency_id')) {{ session('currency_symbol') }} @php $currencyValue = session('value') ?? 1; $totalPrice = $currencyValue * $total; @endphp {{ $totalPrice }}

@else {{$symbol}} {{$total}} @endif
@forelse($data as $index => $d) @else {{$symbol}} {{$d->commission}} @endif @empty @endforelse
{{ __('text.commission') }} {{ __('text.description') }} {{ __('text.date') }}
@if(session('currency_id')) {{ session('currency_symbol') }} @php $currencyValue = session('value') ?? 1; $totalPrice = $currencyValue * $d->commission; @endphp {{ $totalPrice }}{{ $d->description }} {{ date('Y-m-d', strtotime($d->date_added)) }}
{{ __('text.no_records_found') }}
{{ $data->links() }}
@endsection