/
home
/
maktab
/
server
/
resources
/
views
/
File Upload :
llllll
Current File: /home/maktab/server/resources/views/pdf.blade.php
@php $type = [ 1 => "مدیریت", 2 => "مدیریت", 3 => "مدیریت", 4 => "مربی", 5 => "مدیریت" ]; @endphp <!DOCTYPE html> <html dir="rtl" lang="fa"> <head> <meta charset="UTF-8"> <style> body { font-family: 'fa' !important; font-size: 12px; } </style> </head> <body style="margin: 0;padding: 0"> <main dir="rtl"> <div style="height: 120px;text-align: center;"> <div style="display: inline-block;margin-right:5%;"> <h1>گزارش حضور وغیاب های اپ مکتب </h1> </div> </div> <h2 dir="rtl" > مکاتبی که در تاریخ <span dir="rtl"> {{ \Hekmatinasser\Verta\Verta::instance($send["date_at"])->format("Y/m/d") }} </span> حضور و غیاب توسط مدیر ثبت کرده اند </h2> <table class="table-stripedd" style="border-collapse: collapse; margin-left: 20px; margin-right: 20px;font-size: 15px;width: 100%" > <thead > <tr style="height: 50px; text-align: center;background-color: #7e8b7a;color: white"> <td style="width: 5%"></td> <td style="text-align: center;width: 25%">نام مکتب</td> <td style="text-align: center;width: 25%">نام مدیر</td> <td style="text-align: center;width: 20%">تعداد عوامل حاضر</td> <td style="text-align: center;width: 20%">تعداد عوامل غایب</td> </tr> </thead> <tbody> {{ $i=1 }} @php ($userIgnore = [] ) @foreach ($send["report_attendance"] as $item) @unless(isset($item->maktab["master"]["id"])) @continue @endunless <tr style="height: 21px; text-align: center;"> <td style="width: 5.46848%; height: 21px; text-align: center;">{{$i++}}</td> <td style="direction: rtl; height: 40px; text-align: center;">{{$item->maktab["title"]??0}}</td> <td style=" height: 40px; text-align: center;">{{$item->maktab["master"]["name"]??0}}</td> @php($userIgnore[] = $item->maktab["master"]["id"]) <td style=" height: 40px; text-align: center;">{{$item->count}}</td> <td style=" text-align: center; height: 40px;">{{$item->count_absent}}</td> </tr> @endforeach </tbody> </table> <h2 style="margin-top: 50px"> مربیانی که در تاریخ <span dir="rtl"> {{ \Hekmatinasser\Verta\Verta::instance($send["date_at"])->format("Y/m/d") }} </span> حضور و غیاب ثبت کرده اند </h2> <table class="table-stripedd" style="border-collapse: collapse; margin-left: 20px; margin-right: 20px;font-size: 15px;width: 100%"> <thead > <tr style="height: 50px; text-align: center;background-color: #7e8b7a"> <td style="text-align: center;width: 5%;"></td> <td style=" text-align: center;width: 15% ">نام مکتب</td> <td style=" text-align: center;width: 15% ">نام مربی</td> <td style=" text-align: center;width: 8% "> حاضرین</td> <td style="text-align: center;width: 8%"> غایبین</td> <td style="text-align: center;width: 50%">توضیحات</td> </tr> </thead> <tbody> {{ $i=1 }} @foreach ($send["report_student_attendance"] as $item) <tr style="height: 40px; text-align: center;"> <td style=" height: 40px; text-align: center;">{{$i++}}</td> <td style="direction: rtl; height: 40px; text-align: center;">{{$item->maktab["title"]?? ""}}</td> <td style=" height: 40px; text-align: center;">{{$item->teacher["name"]?? ""}}</td> @php($userIgnore[] = $item->teacher["id"]?? 0) <td style="height: 40px; text-align: center;">{{$item->count?? ""}}</td> <td style=" text-align: center; height: 40px;">{{$item->count_absent?? ""}}</td> <td style=" text-align: center; height: 40px;">{{$item->body?? ""}}</td> </tr> @endforeach </tbody> </table> <h2 style="margin-top: 50px"> توضیحات دانش آموزان </h2> <table class="table-stripedd" style="border-collapse: collapse; margin-left: 20px; margin-right: 20px;font-size: 15px;width: 100%"> <thead > <tr style="height: 50px; text-align: center;background-color: #7e8b7a"> <td style="text-align: center;width: 5%;"></td> <td style=" text-align: center;width: 20% ">نام مکتب</td> <td style=" text-align: center;width: 20% ">نام مربی</td> <td style=" text-align: center;width: 20% ">نام دانش آموز</td> <td style="text-align: center;width: 35%">توضیحات</td> </tr> </thead> <tbody> {{ $i=1 }} @foreach ($send["attendance"] as $item) {{-- {{dd($item->id)}}--}} <tr style="height: 40px; text-align: center;"> <td style=" height: 40px; text-align: center;">{{$i++}}</td> <td style="direction: rtl; height: 40px; text-align: center;">{{$item->maktab["title"]}}</td> <td style=" height: 40px; text-align: center;">{{$item->employee["name"]}}</td> <td style="height: 40px; text-align: center;">{{$item->name}}</td> <td style=" text-align: center; height: 40px;">{{$item->absent_body}}</td> </tr> @endforeach </tbody> </table> <h2 style="margin-top: 50px"> مربیانی که در تاریخ <span dir="rtl"> {{ \Hekmatinasser\Verta\Verta::instance($send["date_at"])->format("Y/m/d") }} </span> حضور و غیاب ثبت نکرده اند </h2> <table class="table-stripedd" style="border-collapse: collapse; margin-left: 20px; margin-right: 20px;font-size: 15px;width: 100%"> <thead > <tr style="height: 50px; text-align: center;background-color: #a14949"> <td style="text-align: center;width: 5%;"></td> <td style=" text-align: center;width: 15% ">نام مکتب</td> <td style=" text-align: center;width: 15% ">نام مربی</td> <td style=" text-align: center;width: 8% "> نوع</td> </tr> </thead> <tbody> {{ $i=1 }} {{-- {{dd($send["users"])}}--}} @foreach ($send["users"] as $item) {{-- {{dd($item->title)}}--}} @foreach ($item->users as $user) @if(in_array($user->id, $userIgnore)) @continue @endif <tr style="height: 40px; text-align: center;"> <td style=" height: 40px; text-align: center;">{{$i++}}</td> <td style="direction: rtl; height: 40px; text-align: center;">{{$item->title}}</td> <td style=" height: 40px; text-align: center;">{{$user->name}}</td> <td style=" text-align: center;">{{$type[$user->type]}}</td> {{-- <td style="height: 40px; text-align: center;">{{$user->count}}</td>--}} {{-- <td style=" text-align: center; height: 40px;">{{$user->count_absent}}</td>--}} {{-- <td style=" text-align: center; height: 40px;">{{$user->body}}</td>--}} </tr> @endforeach {{-- <td style=" height: 40px; text-align: center;">{{$item->teacher["name"]}}</td>--}} {{-- <td style="height: 40px; text-align: center;">{{$item->count}}</td>--}} {{-- <td style=" text-align: center; height: 40px;">{{$item->count_absent}}</td>--}} {{-- <td style=" text-align: center; height: 40px;">{{$item->body}}</td>--}} @endforeach </tbody> </table> </main> </body> </html>
Copyright ©2k19 -
Hexid
|
Tex7ure