@extends('backend.layouts.app')
@section('title', @$data['title'])
@section('content')
    {!! breadcrumb([
        'title' => @$data['title'],
        route('admin.dashboard') => _trans('common.Dashboard'),
        '#' => @$data['title'],
    ]) !!}

    <!-- Main content -->
    <div class="table-content table-basic">
        <div class="card">

            <div class="card-body">
                <form action="{{ route('hrm.payroll_setup.user_setup_update', [$data['id'], $data['slug']]) }}"
                    method="post">
                    @csrf
                    <input type="text" hidden name="user_id" value="{{ $data['id'] }}">
                    <div class="" data-select2-id="698">
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="form-group mb-3">
                                    <label class="form-label"> {{ _trans('payroll.Contract Date') }}
                                        <span class="text-danger">*</span></label>
                                    <div class="input-group">
                                        <input type="date" class="form-control ot-form-control ot-input date"
                                            name="contract_start_date"
                                            value="{{ @$data['show']->original['data']['contract_start_date'] }}">
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group mb-3">
                                    <label class="form-label"> {{ _trans('payroll.Contract End') }}
                                        <span class="text-danger">*</span></label>
                                    <div class="input-group">
                                        <input type="date" class="form-control ot-form-control ot-input date"
                                            name="contract_end_date"
                                            value="{{ @$data['show']->original['data']['contract_end_date'] }}">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" data-select2-id="697">
                            <div class="col-sm-6">
                                <div class="form-group mb-3">
                                    <label class="form-label">
                                        {{ _trans('payroll.Salary') }} <span class="text-danger">*</span></label>
                                    <div class="input-group">
                                        <input type="number" class="form-control ot-form-control ot-input"
                                            name="basic_salary" placeholder="{{ _trans('payroll.Enter Salary') }}" step=0.01
                                            value="{{ @$data['show']->original['data']['basic_salary'] }}">
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-6" data-select2-id="696">
                                <div class="form-group mb-3" data-select2-id="695">
                                    <label for="payslip_type" class="form-label">
                                        {{ _trans('payroll.Payslip Type') }} <i class="text-danger">*</i></label>
                                    <select name="payslip_type" id="payslip_type"
                                        class="form-control ot-form-control ot-input select2">
                                        <option value="1" selected="selected">
                                            {{ _trans('payroll.Per Month') }}
                                        </option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="d-flex justify-content-end">
                            <button type="submit" class="btn btn-gradian">
                                {{ _trans('common.Update') }}
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    </div>
@endsection
@section('script')
    <script src="{{ url('backend/js/pages/__profile.js') }}"></script>
@endsection
