<form method="post" onsubmit="saveForm(this)" action="{{ $action }}" enctype="multipart/form-data">
    @if($target ?? ''  && $target->id)
        @method('PUT')
    @endif
    @csrf
    <div class="modal-header">
        <h1 class="modal-title fs-6" id="exampleModalLabel"> <i class="fal fa-user me-1"></i> {{$head ?? ''}} </h1>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
    </div>
    <div class="modal-body">
        <div class="modal-form">
            <div class="row">

                <div class="col-lg-6">
                    <div class="form-group mt-4">
                        <label for="" class="d-block mb-2"> {{ __('targets.year') }} <span style="color:red">*</span></label>
                        <input disabled  class="form-control"  value="{{ $target->year }}">
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="form-group mt-4">
                        <label for="" class="d-block mb-2"> {{ __('targets.month') }} <span style="color:red">*</span></label>
                        <input disabled class="form-control" value="{{ $target->month }}">
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="form-group mt-4">
                        <label for="" class="d-block mb-2"> {{ __('targets.employee') }} <span style="color:red">*</span></label>
                        <input disabled  class="form-control"  value="{{ $target->employee->name }}">
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="form-group mt-4">
                        <label for="" class="d-block mb-2"> {{ __('targets.product') }} <span style="color:red">*</span></label>
                        <input disabled class="form-control" value="{{ $target->product->currentDescription->title }}">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group mt-4">
                        <label for="" class="d-block mb-2"> {{ __('targets.target') }} <span style="color:red">*</span></label>
                        <input name="target" type="number" step=".01" placeholder="{{ __('targets.target') }}" class="form-control" value="{{ $target->target }}">
                    </div>
                </div>

            </div>

            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="line-butn butn-st2 butn-md" data-bs-dismiss="modal" aria-label="Close"><span> {{ __('dashboard.cancel') }} </span></button>
        <button type="submit" class="blue-butn butn-st2 butn-md"><span> {{ __('dashboard.save') }} </span></button>
    </div>
</form>


