invoice.blade.php 8.68 KB
Newer Older
Triyah Fatmawati committed
1
@extends('layouts.app')
2
@section('title','Invoice')
Triyah Fatmawati committed
3 4 5
@section('content')
<section class="section">
    <div class="section-header">
6 7 8
        <h1>Invoice</h1>
        <div class="section-header-breadcrumb">
          <div class="breadcrumb-item"><a href="/">Dashboard</a></div>
9
          {{-- <div class="breadcrumb-item"><a href="">Data Registrasi</a></div> --}}
10
          <div class="breadcrumb-item active">Invoice</div>
Triyah Fatmawati committed
11 12
        </div>
    </div>
13
    {{-- <form novalidate="" method="POST" action="{{ route('user.store')}}" enctype="multipart/form-data"> --}}
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
        @csrf
        <div class="section-body">
              <div class="invoice">
                  <div class="invoice-print">
                  <div class="row">
                      <div class="col-lg-12">
                      <div class="invoice-title">
                          <h2>Invoice</h2>
                          <div class="invoice-number">No. Transaksi #{{$registrasi['kode_registrasi']}}</div>
                      </div>
                      <hr>
                      <div class="row" style="font-size: 12pt">
                          <div class="col-md-6">
                          <address>
                              <strong>Identitas:</strong><br>
                              {{$registrasi['nama']}}<br>
                              {{$registrasi['alamat']}}<br>
                              {{$registrasi['telepon']}}<br>
                          </address>
                          </div>
                          <div class="col-md-6 text-md-right">
                          <address>
                              <strong>Instansi:</strong><br>
                              {{$registrasi['instansi']}}<br>
                          </address>
                          </div>
                      </div>
                      <div class="row" style="font-size: 12pt">
                          <div class="col-md-6">
                          <address>
                              <strong>Metode Pembayaran:</strong><br>
45
                              Virtual Account : {{$registrasi['nomor_va']}}<br>
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
                              {{-- {{$registrasi['email']}} --}}
                          </address>
                          </div>
                          <div class="col-md-6 text-md-right">
                          <address>
                              <strong>Tanggal Registrasi:</strong><br>
                              {{$tglRegistrasi}}<br><br>
                          </address>
                          </div>
                      </div>
                      </div>
                  </div>

                  <div class="row mt-4">
                      <div class="col-md-12" style="font-size: 12pt">
                      <div class="section-title">Rincian</div>
                      <p class="section-lead">Rincian registrasi sudah tidak bisa diubah</p>
                      <div class="table-responsive">
                          <table class="table table-striped table-hover table-md">
                          <tr>
                              <th data-width="40">#</th>
                              <th>Kegiatan</th>
                              <th class="text-center">Harga</th>
                              <th class="text-center">Jumlah</th>
                              <th class="text-right">Total Harga</th>
                          </tr>
                          @php
                              $no = 2;
74
                              $initialharga = $konaspi['harga'];
75 76 77 78 79 80 81 82
                              $subtotal = $initialharga;
                              $i = 0;
                          @endphp
                              <tr>
                                  <td>1</td>
                                  <td>
                                      Convention
                                  </td>
83
                                  <td class="text-center">Rp {{$konaspi['harga']}}</td>
84
                                  <td class="text-center">1</td>
85
                                  <td class="text-right">Rp {{$konaspi['harga']}}</td>
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
                              </tr>
                          @if (isset($hargaKonferensi))
                              @foreach ($hargaKonferensi as $kon)
                                  @php
                                      $subtotal = $subtotal + $kon['hargakon'];
                                  @endphp
                                  <tr>
                                      <td>{{$no}}</td>
                                      <td>
                                          {{$kon['namakeg']}} <br> Konferensi : <b> {{$kon['namakon']}} </b>
                                      </td>
                                      <td class="text-center">Rp {{$kon['hargakon']}}</td>
                                      <td class="text-center">1</td>
                                      <td class="text-right">Rp {{$kon['hargakon']}}</td>
                                  </tr>
                                  @php
                                      $i++;
                                      $no++;
                                  @endphp
                              @endforeach
                          @endif
                          </table>
                      </div>
                      <div class="row mt-4">
                          <div class="col-lg-8">
                          <div class="section-title">Metode Pembayaran</div>
                          <p class="section-lead" style="font-size: 12pt">Setelah menekan tombol bayar, maka data akan tersimpan dan lakukan pembayaran tagihan menggunakan <b>Nomor Virtual Account</b> yang tertera pada <b>Invoice</b> ini</p>
                          {{-- <div class="d-flex">
                              <div class="mr-2 bg-visa" data-width="61" data-height="38"></div>
                              <div class="mr-2 bg-jcb" data-width="61" data-height="38"></div>
                              <div class="mr-2 bg-mastercard" data-width="61" data-height="38"></div>
                              <div class="bg-paypal" data-width="61" data-height="38"></div>
                          </div> --}}
                          </div>
                          <div class="col-lg-4 text-right">
                          <div class="invoice-detail-item">
                              <div class="invoice-detail-name">Subtotal</div>
                              <div class="invoice-detail-value">Rp {{$subtotal}}</div>
                          </div>
                          <hr class="mt-2 mb-2">
                          <div class="invoice-detail-item">
                              <div class="invoice-detail-name">Total</div>
                              <div class="invoice-detail-value invoice-detail-value-lg">Rp {{$subtotal}}</div>
                          </div>
                          </div>
                      </div>
                      </div>
                  </div>
                  </div>
                  <hr>
                  <div class="text-md-right">
                  {{-- <div class="float-lg-left mb-lg-0 mb-3">
                      <button class="btn btn-primary btn-icon icon-left"><i class="fas fa-credit-card"></i> Bayar</button>
                      <button class="btn btn-danger btn-icon icon-left"><i class="fas fa-times"></i> Cancel</button>
                  </div> --}}
                      {{-- <button class="btn btn-warning btn-icon icon-left"><i class="fas fa-print"></i> Cetak</button> --}}
142
                          {{-- <input type="hidden" id="registrasi" name="registrasi" value="{{ json_encode($registrasi) }}">
143 144 145 146
                          <input type="hidden" id="kegiatanpeserta" name="kegiatanpeserta" value="{{ json_encode($kegiatanpeserta) }}">
                          <input type="hidden" id="tglRegistrasi" name="tglRegistrasi" value="{{ json_encode($tglRegistrasi) }}">
                          <input type="hidden" id="konaspi" name="konaspi" value="{{ json_encode($konaspi) }}">
                          <input type="hidden" id="hargaKonferensi" name="hargaKonferensi" value="{{ json_encode($hargaKonferensi) }}">
147
                          <input type="hidden" id="totalHarga" name="totalHarga" value="{{ json_encode($totalHarga) }}"> --}}
148
                          {{-- <button type="submit" class="btn btn-primary btn-icon icon-left"><i class="fas fa-credit-card"></i> Bayar</button> --}}
149
                          {{-- <a href="{{route('user.create')}}" class="btn btn-primary btn-icon icon-left"><i class="fas fa-credit-card"></i> Bayar</a> --}}
Triyah Fatmawati committed
150
                          <a href="{{route('user.create')}}" class="btn btn-danger btn-icon icon-left"><i class="fas fa-times"></i>Close</a>
151 152 153
                  </div>
              </div>
          </div>
154
    {{-- </form> --}}
155
</section>
Triyah Fatmawati committed
156 157
@endsection