<script src="{{asset('assets/js/app.js')}}"></script>
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
  <div class="modal-content">
    <div class="modal-content">
      <form id="frm-group" method="post" action="{{route('groups.update', $group->id)}}" class="needs-validation" novalidate>
        @csrf
        @method('PUT')
        <div class="modal-header">
          <h6 class="modal-title" id="staticBackdropLabel">{{__('app.edit_group')}} - {{ $group_type['breadcrumbs_title'] }}
          </h6>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        <div class="modal-body">
          <div class="box-body">
            <div class="col-md-12">
              <label class="form-label">{{__('app.name')}}</label>
              <input type="text" class="form-control" placeholder="{{__('app.name')}}" value="{{$group->name ?? ''}}" name="name" required>
              <input type="hidden" name="group_type" value="{{$group->type_id ?? ''}}">
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-danger" data-bs-dismiss="modal">{{__('app.close')}}</button>
          <button type="submit" class="btn btn-primary btn-loading"><i class=""></i> {{__('app.update')}}</button>
        </div>
      </form>
    </div>
  </div>
</div>