excel.blade.php 5.67 KB
Newer Older
Siti Aisah committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151

<?php
header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=$nama_file.xls");
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Peserta KONASPI 2024</title>
	
	<style type="text/css">
	body{ background-color: #FFF; }
		.num {
          mso-number-format:"\@";
         }
        .title-sm{
          /*font-family: 'myriadproregular'; */
          font-size: 15pt; font-weight: bold;
         } 
         .title-lg{
          /*font-family: 'myriadproregular';  */
          font-size: 24pt; font-weight: bold;
         }          
          body{ font-size: 11pt;
            /*font-family: 'myriadproregular'; */
          }
          .title-jurusan{
             /*font-family: 'myriadproregular';  */
             font-size: 20pt; font-weight: bold;
          }

          #head-title{
             /*font-family: MyriadPro-Regular; */
             src: url("{{ asset('assets/font/MyriadPro-Regular.otf') }}");
             font-family:MyriadPro-Regular;
             font-weight:bold;
          }
          
          #head-big{
             /*font-family:MyriadPro-Cond; */
             font-weight:bold;
             font-size:22pt;
          }
          
          #container td{
             /*font-family:MyriadPro-Regular;*/
          }

          .page-break {
              page-break-after: always;
          }

          div.ui-menu li {
			    list-style:none;
			    background-image:none;
			    background-repeat:none;
			    background-position:0; 
			}
			ul
			{
			    list-style-type:none;
			    padding:0px;
			    margin:0px;
			}
			li
			{
			    background-image:url(sqpurple.gif);
			    background-repeat:no-repeat;
			    background-position:0px 5px; 
			    padding-left:14px;
			}
            
            .responsive {
                width: 100%;
                height: auto;
                }


        .kotak {
            border: 1px solid #000; 
            width: 15px;
            height: 15px;  
            font-weight: bold;   
            font-size:9pt
          
            } 
             
           
	</style>  <style> .str{ mso-number-format:\@; } </style>
    <center>
      DAFTAR PESERTA KONASPI 2024
    </center>
        <table>
                                <thead>
                                    <tr style="text-align: center;">
                                    <th>No.</th>
                                    <th>Kode Registrasi</th>
                                    <th>Nama</th>
                                    <th>Email</th>
                                    <th>Telepon</th>
                                    <th>Instansi</th>
                                    <th>Jabatan</th>
                                    <th>Alamat</th>
                                    <th>Kode Pos</th>
                                    <th>Kota</th>
                                    <th>Virtual Account</th>
                                    <th>Tagihan</th>
                                    <th>Kegiatan</th>
                                    <th>Konferensi</th>
                                    <th>Tanggal Daftar</th>
                                    <th>Tanggal Bayar</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @php
                                        $no = 1;
                                    @endphp
                                    @foreach ($peserta as $p)
                                        <tr style="text-align: center;">
                                            <td>{{ $no }}</td>
                                            <td>{{ $p->kode_registrasi }}</td>
                                            <td>{{ $p->nama}}</td>
                                            <td>{{ $p->email}}</td>
                                            <td>'{{ $p->telepon }}</td>
                                            <td>{{ $p->instansi}}</td>
                                            <td>{{ $p->jabatan }}</td>
                                            <td>{{ $p->alamat }}</td>
                                            <td>{{ $p->kode_pos }}</td>
                                            <td>{{ $p->kota }}</td>
                                            <td>'{{ $p->nomor_va }}</td>
                                            <td>{{ $p->tagihan }}</td>
                                            @php
                                                $keg = DB::table('v_kegiatan')->where('id_registrasi', $p->id)->get();
                                            @endphp
                                            <td align="left">
                                                @foreach($keg as $k)
                                                    {{ $k->kegiatan.";" }}<br>
                                                @endforeach
                                            </td>
                                            <td align="left">
                                                @foreach($keg as $k)
                                                    {{ $k->konferensi.";" }}<br>
                                                @endforeach
                                            </td>
                                            <td>{{ $p->created_at }}</td>
                                            <td>{{ $p->tanggal_bayar }}</td>
                                        </tr>
                                        @php
                                            $no++;
                                        @endphp
                                    @endforeach
                                </tbody>
                            </table>