@extends('layouts.frontendDashboard.master') @section('title', 'Manage Project Investment') @section("body-start")
@endsection @section("content")
@foreach ($viewableColumns as $column) @if($column['view_availability'] == 1) @php $setting = App\Models\SupportManagerSetting::where('column_name', $column['column_name'])->first(); @endphp @if($column['column_name'] == 'status' || $column['column_name'] == 'type') @elseif($column['column_name'] == 'investment_date') @else @endif @endif @endforeach @if(!empty($investmentData)) @foreach($investmentData as $key => $investment) @foreach ($viewableColumns as $column) @php $columnName = $column['column_name']; $viewAvailability = $column['view_availability']; @endphp @if($viewAvailability == 1) @if($columnName == 'investment_date') @elseif($columnName == 'user_id') @elseif($columnName == 'project_id') @elseif($columnName == 'share_price') @elseif($columnName == 'share') @elseif($columnName == 'total_share_amount') @elseif($columnName == 'dividend') @else @endif @endif @endforeach @endforeach @endif
#{{ $setting->display_name }}{{ $setting->display_name }}{{ $setting->display_name }}Actions
{{++$key}} @if($investment->investment_date !='') {{carbonFormatDate($investment->investment_date,'d-m-Y')}} @else {{carbonFormatDate($investment->created_at,'d-m-Y')}} @endif @if(!empty($investment->getUser->email)){{ $investment->getUser->email }}@endif @if(!empty($investment->getProject->project_name)){{ $investment->getProject->project_name }}@endif {{ !empty($investment->share_price) ? number_format($investment->share_price, 2, '.', ',') : '' }} {{ !empty($investment->share) ? number_format($investment->share) : '' }} {{ !empty($investment->total_share_amount) ? number_format($investment->total_share_amount, 2, '.', ',') : '' }} {{ !empty($investment->dividend) ? number_format($investment->dividend, 2, '.', ',') : '' }} {{ $investment->$columnName }} @if($investment->type == 'Investment') @endif
@endsection @push('scripts') @endpush