@extends('layouts.master')

@section('title')
الشهادة
@endsection

@section('first-css')
<link href="{{asset('/css/certificate.css')}}" rel="stylesheet">
@endsection

@section('content-body')
    <!--**********************************
                Content body start
            ***********************************-->
    <!-- row -->
    <div class="container-fluid">
        <div class="row invoice-card-row">
            <div class="row invoice-card-row" id="m">
                <div class="d-flex flex-wrap align-items-start justify-content-start  mb-3 printCertificate">

                    <button  id="printCertificate"  type="button" class="btn btn-primary  me-1" data-bs-toggle="modal" data-bs-target="#addStudent">
                        <i class="mdi mdi-print-circle ms-2"></i>طباعة الشهادة
                    </button>
                </div>

                <div class="col-xl-12 certificat">
                    <div class="print-container ">
                        <div class="certification   "  >
                            <img src="{{asset('/images/certificat.png')}}" alt="" class="certification-img"srcset="" >
                            <div class="info-certifcate">
                                <h2 class="mb-4  ">يشهد مركز
                                    <span class="fw-bold text-primary">الخبير الاداري للتدريب</span>
                                </h2>
                                <h2 class="fw-bold mb-4   ">
                                    بأن الأستاذ/
                                    <span style="color: #1f497d">
                                        @isset($certificateInfo->student->certificate_name)
                                        {{$certificateInfo->student->certificate_name}}
                                    @endisset
                                                                    </span>
                                </h2>
                                <h2 class="fw-bold mb-4   ">
                                   قد حضر البرنامج التدريبي
                                </h2>
                                <h2 class="fw-bold text-primary mb-4   ">
                                        @isset($certificateInfo->room->course->title)
                                            {{$certificateInfo->room->course->title}}
                                        @endisset
                                </h2>
                                 <h3 class="mb-4 ">
                                    والمنعقد بتاريخ
                                    <span class="fw-bold">
                                       
                                        <span class="" id="hijri">
                    
                                        </span>
                                        <span>هـ</span>
                                    </span>
                                    <span>الموافق</span>
                                    <span class="fw-bold">
                                        <span class="" id="milady">
                                            {{$certificateInfo->room->created_at}}
                                        </span>
                                     
                                        <span>م</span>
                                    </span>
                                    <span>بمدينة:</span>
                                    <span class="fw-bold">
                                        @isset($certificateInfo->room->place)
                                        {{$certificateInfo->room->place}}
                                    @endisset
                                    </span>
                                 </h3>
                                 <h3>
                                    <span>بعدد ساعات(</span>
                                    <span class="fw-bold">@isset($certificateInfo->room->course->hours_number)
                                        {{$certificateInfo->room->course->hours_number}}
                                    @endisset</span>
                                    <span>)ساعة تدريبية</span>
                                 </h3>
                            </div>

                        </div>

                    </div>

                </div>
            </div>
        </div>
    </div>
    <!--**********************************
                Content body end
    ***********************************-->
    <script src="{{asset('js/date/hijri.js')}}"></script>
    <script src="{{asset('js/print/certificate.js')}}"></script>
@endsection
@section('script')
@endsection
