@extends('layouts.app') @php $total = count($result); // dumper($total); @endphp @section('content')

{!! __('common.edit') . ' ' . __('common.assign_account_type') !!}

{!! Form::model($result, [ 'route' => ['assign-account-type.update', $officeId], 'method' => 'put', 'id' => 'ajax-submit', 'files' => 'true', ]) !!}
{!! Form::select('', ['' => __('common.select_office')] + $office->toArray(), $officeId, [ 'class' => 'form-control select2 clientName multiple-client-select2', 'id' => 'office', 'disabled' => true ]) !!}

{{--
{!! Form::label('Account Type', __('common.account_type')) !!}
{!! Form::label('Opening Balance', __('common.opening_balance')) !!}
{!! Form::label('Status', __('common.status')) !!}
--}} {{--
--}}
@foreach ($result as $i => $row)
@if ($i==0) {!! Form::label('Account Type', __('common.account_type')) !!} @endif {!! Form::select( "account_type_id[$i]", ['' => __('common.select_account_type')] + $accountTypes, $row->account_type_id, ['class' => 'form-control select2 accountType multiple-client-select2', 'disabled' => true ], ) !!}
@if ($i==0) {!! Form::label('Opening Balance', __('common.opening_balance')) !!} @endif
{{ $row->currency }} {!! Form::text("opening_balance[$i]", $row->opening_balance, ['class' => 'form-control openingBalance']) !!}
@if ($i==0) {!! Form::label('Status', __('common.status')) !!} @endif {!! Form::select("status[$i]", status(), $row->status, ['class' => ' form-group select2']) !!}
@if ($i==0) @endif @if($row->delete_able == 0) @elseif ($row->delete_able == 1) @endif
@endforeach
{{--
--}}
{!! Form::close() !!}
@endsection @section('bottom_script') @endsection