Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/penjualan_etalase/
Upload File :
Current File : /home/aplikasiposinfo/public_html/hayyumart.com/resources/views/penjualan_etalase/detail.blade.php

@extends('layouts.app')

@section('content')
<?php 
 ?>
<div class="main-container">
    <div class="container-fluid">
        <div class="page-breadcrumb">
            <div class="row">
                <div class="col-md-7">
                    <div class="page-breadcrumb-wrap">

                        <div class="page-breadcrumb-info">
                            <h2 class="breadcrumb-titles"><a href="{{ url($url) }}">{{ $title }}</a></h2>
                            <ul class="list-page-breadcrumb">
                                <li><a href="#">{{ $menu }}</a>
                                </li>
                                <li  ><a href="{{ url($url) }}">{{ $title }}</a></li>
                                <li class="active-page" ><a href="{{ url($url) }}">Detail Data {{ $title }}</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="col-md-5">
                </div>
            </div>
        </div>
        <form class="form-horizontal" method="post" action="{{ url($url.'/'.$data->no_penjualan) }}">

            <div class="row">
                <div class="col-md-12">
                    <div class="box-widget widget-module">
                        <div class="widget-head clearfix">
                            <span class="h-icon"><i class="fa fa-table"></i></span>
                            <h4>Detail {{ $title }}</h4>
                            
                            <div class="pull-right" style="padding: 10px;position: relative;z-index: 99;">
        
                                <a href="{{ url($url.'/'.$data->no_penjualan.'/cetak') }}" class="btn btn-primary btn-sm" target="_blank" style="cursor:pointer;">Cetak</a>
                            </div>
                        </div>
                        <div class="widget-container">
                            <div class="widget-block">
                                <div id="list-contain">
                                    
                                    <table class="table table-striped table-responsive"  style="margin-top: -10px;" width="800" border="0" cellspacing="1" cellpadding="2">
                                        <tr >
                                          <td width="29" ><strong>No</strong></td>
                                          <td width="85" ><strong>Kode</strong></td>
                                          <td width="432"><strong>Nama Barang </strong></td>
                                          <td width="85" align="right"><strong>Harga (Rp) </strong></td>
                                          <td width="48" align="right"><strong>Jumlah</strong></td>
                                          <td width="100" align="right"><strong>Sub Total(Rp) </strong></td>
                                          <td width="22" align="center">&nbsp;</td>
                                        </tr>
                                    <?php $no = 1; 
                                    $totalBayar = 0; 
                                    $jumlahbarang   = 0;
                                    ?>
                                    @foreach($data->detail as $dd)
                                    <?php
                                        $subSotal   = $dd->qty * $dd->harga_barang->harga_jual;
                                        $totalBayar = $totalBayar + $subSotal;
                                        $jumlahbarang   = $jumlahbarang + $dd->qty;
                                    ?>
                                        <tr>
                                          <td><?php echo $no; ?></td>
                                          <td><?php echo $dd->harga_barang->barang->kd_barang; ?></b></td>
                                          <td><?php echo $dd->harga_barang->barang->nm_barang; ?></td>
                                          <td align="right"><?php echo number_format($dd->harga_barang->harga_jual); ?></td>
                                          <td align="right"><?php echo $dd->qty; ?></td>
                                          <td align="right"><?php echo number_format($subSotal); ?></td>
                                          <td></td>
                                        </tr>
                                        
                                        <?php $no++; ?>
                                    @endforeach

                                        <tr>
                                          <td colspan="4" align="right" ><strong>GRAND TOTAL BELANJA  (Rp.) : </strong></td>
                                          <td align="right" ><b><?php echo $jumlahbarang; ?></b></td>
                                          <td align="right" ><b><?php echo number_format($totalBayar + $data->ongkos_kirim); ?></b></td>
                                          <td >&nbsp;</td>
                                        </tr>
                                      </table>
                                </div>
                                
                            
                            </div>
                        </div>
                    </div>    
                </div>

            </div>

            <div class="row">
                <div class="col-md-12">
                    <div class="box-widget widget-module">
                        <div class="widget-head clearfix">
                            <span class="h-icon"><i class="fa fa-table"></i></span>
                            <h4>Data {{ $title }}</h4>
                            <div class="pull-right" style="padding: 10px;position: relative;z-index: 99;">
                             
                                <a href="{{ url($url) }}" class="btn  btn-warning ">Kembali</a>
                            </div>
                            
                        </div>
                        <div class="widget-container">
                            <div class="widget-block">
                                <div class="row">
                                    
                                    <div class="col-md-6">
                                     
                                        
                                        @csrf
                                        <input type="hidden" name="_method" value="PUT">
                                        

                                        <div class="form-group">
                                            <label class="col-md-4 control-label">No Penjualan</label>
                                            <div class=" col-md-8">
                                                <input type="text" class="form-control" name="no_penjualan" placeholder="No Penjualan" readonly="" value="{{ $data->no_penjualan }}" disabled="" readonly="">
                                                
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-md-4 control-label">Tanggal Penjualan</label>
                                            <div class=" col-md-8">
                                                <input type="date" class="form-control" name="tgl_penjualan" value="{{ $data->tgl_penjualan}}" disabled="" readonly="">
                                                
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-md-4 control-label">Keterangan</label>
                                            <div class=" col-md-8">
                                                {{$data->note}}
                                            </div>
                                        </div>

                                        
                                        
                                    </div>

                                    <div class="col-md-6">
                                        <p>Bukti Pembayaran :</p>
                                        <img src="{{ asset('images/bukti_pembayaran/' . $data->foto_path) }}" alt="" style="max-width: 300px;">
                                    </div>

                                  
                                    
                                </div>
                            </div>
                        </div>
                    </div>    
                </div>

            </div>

        </form>
        
    </div>
</div>


@endsection

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]