@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @section('content')
@include('admin.partials.header', ['extra' => $extra]) @php $total_ratio = 0; $total_capital_amount = 0; $total_profit = 0; $total_working_share = 0; $total_actual_profit_share = 0; $net_profit_loss = abs($net_profit_loss); @endphp @foreach ($unofficial_company_investors_data as $unofficial_company_investor_data) @php $capital_amount = $unofficial_company_investor_data['capital_amount']; $share_in_percentage = $unofficial_company_investor_data['share_in_percentage']; $is_head_investor = $unofficial_company_investor_data['is_head_investor']; if ($share_in_percentage == 0) { $profit = 0; $profit_rounded = 0; $profit_ratio_rounded = 0; $working_share_rounded = 0; $actual_profit_share = 0; $profit_percentage_rounded = 0; } else { $profit = $net_profit_loss * (($share_in_percentage)/100); $profit_rounded = round($profit , 2); if($capital_amount == 0) { $profit_ratio = 0; } else { $profit_ratio = ($profit/($capital_amount)) * 100; } $profit_ratio_rounded = round($profit_ratio, 2); $working_share = $profit * ($total_share/100); $working_share_rounded = round($working_share , 2); if($is_head_investor) { $working_share_rounded = 0; } $actual_profit_share = $profit_rounded - $working_share_rounded; if($capital_amount == 0) { $profit_percentage = 0; } else { $profit_percentage = ($actual_profit_share / ($capital_amount)) * 100; } $profit_percentage_rounded = round($profit_percentage , 2); } $total_ratio += $share_in_percentage; $total_capital_amount += $capital_amount; $total_profit += $profit_rounded; $total_working_share += $working_share_rounded; $total_actual_profit_share += $actual_profit_share; @endphp @if($share_in_percentage > 0) @endif @endforeach
{{__('lang.sno')}} {{__('lang.particulars')}} {{__('lang.ratio')}} {{__('lang.capital')}} {{__('lang.profit')}} {{__('lang.profit_ratio')}} {{$total_share}} % {{__('lang.working_share')}} {{__('lang.actual_profit_share')}} {{__('lang.profit')}}
{{ $loop->iteration }} {{ $unofficial_company_investor_data['investor_name'] ?? "-" }} {{ $transaction->convert_money_format($share_in_percentage ?? "-") }}% {{ $transaction->convert_money_format($capital_amount ?? "-") }} {{ $transaction->convert_money_format($profit_rounded ?? "-") }} {{ $profit_ratio_rounded }}% {{ $transaction->convert_money_format($working_share_rounded ?? "-") }} {{ $transaction->convert_money_format($actual_profit_share ?? "-") }} {{ $profit_percentage_rounded }}%
{{__('lang.total')}} {{$total_ratio}}% {{$transaction->convert_money_format($total_capital_amount)}} {{$transaction->convert_money_format($total_profit)}} {{$transaction->convert_money_format($total_working_share)}} {{$transaction->convert_money_format($total_actual_profit_share)}}
@stop