@php $transaction_types = []; if(in_array($contact->type, ['both', 'supplier'])){ $transaction_types['purchase'] = __('lang_v1.purchase'); $transaction_types['purchase_return'] = __('lang_v1.purchase_return'); } if(in_array($contact->type, ['both', 'customer'])){ $transaction_types['sell'] = __('sale.sale'); $transaction_types['sell_return'] = __('lang_v1.sell_return'); } $transaction_types['opening_balance'] = __('lang_v1.opening_balance'); @endphp
{!! Form::open(['url' => action([\App\Http\Controllers\ContactController::class, 'sendLedgerByWhatsapp']) , 'method' => 'post', 'id' => 'send_notification_whatsapp_form' ]) !!}
{{-- {!! Form::select('ledger_format', ['format_1' => __('lang_v1.format_1'), 'format_2' => __('lang_v1.format_2'),'format_3' => __('lang_v1.format_3'),'format_4' => __('lang_v1.format_4')], $ledger_format, ['class' => 'form-control']); !!} {!! Form::hidden('start_date', $start_date); !!} {!! Form::hidden('end_date', $end_date); !!} {!! Form::hidden('location_id', $location_id); !!} --}} {!! Form::hidden('contact_id', $contact->id); !!}

{!! Form::label('ledger_date_range', __('report.date_range') . ':') !!} {!! Form::text('ledger_date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'readonly']); !!}
@if(session('business.enable_automatic_correction')) @else @endif @if(session('business.enable_automatic_correction') && $contact->type == 'customer') @endif
{!! Form::label('ledger_location', __('purchase.business_location') . ':') !!} {!! Form::select('ledger_location', $business_locations, null , ['class' => 'form-control select2', 'id' => 'ledger_location']); !!}
{!! Form::close() !!}