<!-- Image Cropping Tool -->
<div class="form-group text-center">
    @if(isset($title))
        <h2>{{ $title }}</h2>
    @endif
    <div class="dropzone image_cropping_container" id="image_cropping_container_{{ $name }}" data-width="{{ $width ?? '' }}" data-height="{{ $height ?? '' }}" style="width: 100%;" data-save_path="{{ $save_path ?? '' }}" data-element_id="{{ $name ?? '' }}" data-cropping_width="{{ $width ?? '' }}" data-cropping_height="{{ $height ?? '' }}">
    </div>
</div>

<!-- Image collection Form Hidden -->
{!! Form::hidden($name ?? '', $source ?? '', ['id' => $name ?? '', 'data-width' => $width ?? '', 'data-height' => $height ?? '', 'data-element_id' => $name ?? '', 'class' => $hidden_class ?? '']) !!}

<!-- Width Form Hidden -->
{!! Form::hidden($width_name ?? 'width', $width ?? '', ['id' => 'image_cropping_hidden_width', 'class' => $name ?? '']) !!}

<!-- Height Form Hidden -->
{!! Form::hidden($height_name ?? 'height', $height ?? '', ['id' => 'image_cropping_hidden_height', 'class' => $name ?? '']) !!}

@if(isset($file_manager_modal) && $file_manager_modal)
    @include('admin.partials.image_cropping.file_manager')
@endif
