@extends('admin.layouts.layouts') @section('title', 'Edit | Investment') @section('page-css') @endsection @section('content')
{!! Form::open([ 'route' => 'investment.store', 'method' => 'POST', 'id' => 'investment_form', 'files' => true, ]) !!} @csrf {!! Form::hidden('id', $investmentDetail->id, ['id' => 'id']) !!}
{{-- Basic Details --}}
{{ $errors->first('type') }}
{{ $errors->first('sub_type') }}
{{ $errors->first('name') }}

Payable Bank

{{ $errors->first('bank_name') }}
{{ $errors->first('account_no') }}
{{ $errors->first('ifsc_code') }}
{{--
@php $extension = pathinfo($investmentDetail->blank_cheque, PATHINFO_EXTENSION); $imageExtensions = ['jpeg', 'png', 'jpg']; @endphp @if (!empty($investmentDetail->blank_cheque) && file_exists(public_path('storage/' . $investmentDetail->blank_cheque))) @if (in_array(strtolower($extension), $imageExtensions))
Aadhar Front
@else @endif @else No Image @endif
{{ $errors->first('blank_cheque') }}
{{ $errors->first('cheque_number') }}
--}}

{{ $errors->first('bank_id') }}
@php $receiveDate = $investmentDetail->receive_date ? date('d-m-Y', strtotime($investmentDetail->receive_date)) : ''; @endphp
{{ $errors->first('receive_date') }}
{{ $errors->first('payment_type') }}
{{ $errors->first('amount') }}
{{ $errors->first('charges') }}
{{ $errors->first('credited_amount') }}
%
{{ $errors->first('payable_amount') }}
{{ $errors->first('condition') }}
@if ($investmentDetail->installmentDetails && $investmentDetail->installmentDetails->count() > 0) @foreach ($investmentDetail->installmentDetails as $index => $detail) @endforeach
Amount * Date * Action
@endif
{{ Form::close() }}
@endsection @section('page-js') @endsection