<?php $__env->startSection('pageTitle'); ?> <?php echo $__env->make('layouts.includes.title', ['moduleTitle' => __('locale.classes')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('pageBreadcrumb'); ?> <?php echo $__env->make('layouts.includes.breadcrumb', ['moduleTitle' => __('locale.class').' '. __('locale.details') ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="row __sms__datatable">
        <div class="col-lg-4">
            <div class="card card-topline-yellow">
                <div class="card-head">
                    <header><?php echo e(__('locale.assign').' '.__('locale.classteacher')); ?> </header>
                </div>
                <div class="card-body ">
                    <div class="row text-center m-t-10">
                        <div class="form-group col-lg-12">

                            <?php echo Form::openGroup('class_id', __('student::locale.class') ,array("lbl_class" => "required", "class" => 'col-lg-12')); ?>

                            <?php echo Form::select('class_id', [null=>__('locale.please_select')] +$data['studentClasses'], '', array("required" => "true", 'id' => '_ref_class_id', 'class'=> 'form-control __change__student__class', 'data-url' => route('class.ajax_on_change', 'classId'),'defaultTxt' => __( 'locale.select' ) ) ); ?>

                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('section_id', __('student::locale.section') ,array("lbl_class" => "required", "class" => 'col-lg-12')); ?>

                            <div class="__replace__section__byClass">
                                <?php echo Form::select('section_id', [null=>__('locale.please_select')]+$data["sections"],'', array("required" => "true", 'id' => '_ref_section_id', 'class'=> 'form-control','defaultTxt' => __( 'locale.select' ) ) ); ?>

                            </div>
                            <?php echo Form::closeGroup(); ?>


                            <?php echo Form::openGroup('staff_id', __('student::locale.staff') ,array("lbl_class" => "required", "class" => 'col-lg-12')); ?>

                            <div class="">
                                <?php echo Form::select('staff_id', [null=>__('locale.please_select')]+$data["staffs"],'', array("required" => "true", 'id' => '_ref_staff_id', 'class'=> 'form-control','defaultTxt' => __( 'locale.select' ) ) ); ?>

                            </div>
                            <?php echo Form::closeGroup(); ?>


                        </div>
                    </div>
                </div>
                <div class="card-footer text-right">
                    <button type="button"
                            class="btn btn-primary m-b-10 __sms__add__teacher__detail mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect btn-circle"
                            data-id="0" data-type="dialog6">Save
                    </button>
                </div>
            </div>
        </div>
        <div class="col-lg-8">
            <div class="card card-topline-yellow">
                <div class="card-head">
                    <header><?php echo e(__('locale.classteachers')); ?> </header>
                </div>
                <div class="card-body ">
                    <div class="table-scrollable">
                        <table id="<?php echo e($moduleName); ?>-table"
                               class="display table table-checkable order-column valign-middle __class__teacher__table"
                               style="width: 100%">
                            <thead>
                            <tr>
                                <th width="10%"> <?php echo e(__('locale.class')); ?></th>
                                <th width="20%"> <?php echo e(__('locale.sections')); ?></th>
                                <th width="20%"> <?php echo e(__('locale.teacher')); ?></th>
                                <th width="15%"> <?php echo e(__('locale.actions')); ?></th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <link href="<?php echo e(asset('assets/plugins/sweet-alert/sweetalert2.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('assets/css/pages/formlayout.css')); ?>" rel="stylesheet">
    <script src="<?php echo e(asset('assets/plugins/sweet-alert/sweetalert2.all.min.js')); ?>"></script>

    <script>
        let columnsArray = [{data: 'class', name: 'class'}, {data: 'section', name: 'section'}, {
            data: 'teacher',
            name: 'teacher'
        }, {data: 'action', name: 'action'}];
        let routeUrl = "<?php echo e(route($moduleName.'.index')); ?>";
        let tableRef = "<?php echo e($moduleName.'-table'); ?>";
        // Run the Datatable
        let table = __commonDatatableListing(tableRef, routeUrl, columnsArray);
        let actionUrl = {
            '_add_edit_record': "<?php echo e(route($moduleName.'.crud', '_refSection')); ?>",
            '_edit_record': "<?php echo e(route($moduleName.'.edit', '_refSection')); ?>",
            '_destroy_record': "<?php echo e(route($moduleName.'.destroy', '_refSection')); ?>",
            
            '_success_msg': "<?php echo e(__('locale.teacher_saved')); ?>",
            '_get_class_section_url': "<?php echo e(route('class.ajax_on_change', 'classId')); ?>"
        };
        getDivisions();
    </script>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/sms/app/Modules/Student/Resources/Views/class_teacher/index.blade.php ENDPATH**/ ?>