@php
$overallassetorderamount=0;
@endphp
@foreach($actor_assetdetails as $actor_assetdetail)
@php
$assetorderamount=\App\Models\Orderdetails::where('asset_id',$actor_assetdetail->id)->where('payment_status','Paid')->sum('asset_price');
$overallassetorderamount=$overallassetorderamount+$assetorderamount;
@endphp
@endforeach
@php
$display_countrydetails = \App\Models\CountryDetails::find(Auth::user()->countryid);
$country_price_symbol = $display_countrydetails->pricesymbol;
if($overallassetorderamount != 0)
{
$overallassetorderamount = \Mgcodeur\CurrencyConverter\Facades\CurrencyConverter::convert($overallassetorderamount)->from("INR")->to($display_countrydetails->countrycode)->get();
$overallassetorderamount = number_format($overallassetorderamount, 2);
}
@endphp
{{ $country_price_symbol." ".$overallassetorderamount }}
View net earnings
{{ $country_price_symbol }}