@push('styles')
<style>
.image-upload {
width: 200px;
height: 200px;
background-color: gainsboro;
display: block;
margin: auto;
background-size: contain;
}
.image-upload>input {
display: none;
}
.pilih-bentuk svg {
width: 100px;
height: 100px;
display: block;
margin: auto;
}
.pilih-bentuk i {
font-size: 100px;
color: grey;
position: absolute;
left: 0%;
top: 0%;
right: 0%;
bottom: 0%;
}
</style>
@endpush
<div class="row">
<!-- Task Info -->
<div class="col-md-3">
<div class="card">
<div class="header">
<a href="{{ route('pelanggan.index') }}" class="btn btn-warning">Kembali</a>
</div>
<div class="body">
<div class="row clearfix ">
<div class="col-md-12">
<b>Nama Pelanggan</b>
<div class="input-group colorpicker colorpicker-element">
<div class="form-line ">
<input type="text" class="form-control" name="nama_pelanggan"
value="@if (isset($data)) {{ $data->nama_pelanggan }} @endif">
</div>
<span class="input-group-addon">
<i style="background-color: rgb(0, 170, 187);"></i>
</span>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-12">
<b>No. Telepon</b>
<div class="input-group colorpicker colorpicker-element">
<div class="form-line ">
<input type="text" class="form-control" name="telp_pelanggan"
value="@if (isset($data)) {{ $data->telp_pelanggan }} @endif">
</div>
<span class="input-group-addon">
<i style="background-color: rgb(0, 170, 187);"></i>
</span>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-12">
<b>Alamat</b>
<div class="input-group colorpicker colorpicker-element">
<div class="form-line ">
<input type="text" class="form-control" name="alamat_pelanggan"
value="@if (isset($data)) {{ $data->alamat_pelanggan }} @endif">
</div>
<span class="input-group-addon">
<i style="background-color: rgb(0, 170, 187);"></i>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div class="row">
{{-- <div class="col-md-6">
<div class="card ">
<div class="header">
Riwayat
</div>
<div class="body">
<table class="table table-bordered table-striped table-hover js-basic-example dataTable">
<thead>
<tr>
<th>
Tanggal
</th>
<th>
Jenis
</th>
<th>
Nomor
</th>
<th>
Nominal
</th>
</tr>
</thead>
<tbody>
@foreach ($data->riwayat as $riwayat)
<tr>
<td>
{{ $riwayat->tanggal }}
</td>
<td>
{{ $riwayat->jenis_transaksi }}
</td>
<td>
{{ $riwayat->no_transaksi }}
</td>
<td>
{{ $riwayat->biaya }}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div> --}}
<div class="col-md-6">
<div class="card ">
<div class="header">
Penjualan
</div>
<div class="body">
<table class="table table-bordered table-striped table-hover js-basic-example dataTable">
<thead>
<tr>
<th>
Tanggal
</th>
<th>
Nomor
</th>
<th>
Uang Bayar
</th>
<th>
Total
</th>
<th>
Status
</th>
</tr>
</thead>
<tbody>
@foreach ($data->penjualan as $penjualan)
<tr>
<td>
{{ $penjualan->tanggal_penjualan }}
</td>
<td>
{{ $penjualan->nomor_nota }}
</td>
<td>
{{ number_format($penjualan->uang_bayar) }}
</td>
<td>
{{ number_format($penjualan->total) }}
</td>
<td>
{{ $penjualan->status }}
</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td>
</td>
<td>
Total
</td>
<td>
{{ number_format($data->penjualan->sum('uang_bayar')) }}
</td>
<td>
{{ number_format($data->penjualan->sum('total')) }}
</td>
<td>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card ">
<div class="header">
Service
</div>
<div class="body">
<table class="table table-bordered table-striped table-hover js-basic-example dataTable">
<thead>
<tr>
<th>
Tanggal
</th>
<th>
Nomor
</th>
<th>
Biaya
</th>
<th>
Spartpart
</th>
<th>
Total
</th>
<th>
Status
</th>
</tr>
</thead>
<tbody>
@foreach ($data->service as $service)
<tr>
<td>
{{ $service->tanggal }}
</td>
<td>
{{ $service->no_service }}
</td>
<td>
{{ number_format($service->biaya) }}
</td>
<td>
{{ number_format($service->detail->sum('total_sparepart') + $service->sparepart_luar->sum('total_sparepart')) }}
</td>
<td>
{{ number_format($service->grand_total) }}
</td>
<td>
{{ $service->status_transaksi }}
</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td>
</td>
<td>
Total
</td>
<td>
{{ number_format($data->service->sum('biaya')) }}
</td>
<td>
{{ number_format(
$data->service->sum(function ($service) {
return $service->detail->sum('total_sparepart') + $service->sparepart_luar->sum('total_sparepart');
}),
) }}
</td>
<td>
{{ number_format($data->service->sum('grand_total')) }}
</td>
<td></td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
{{-- @if (isset($data->riwayat))
@foreach ($data->riwayat as $data)
@if ($data->jenis_transaksi == 'Service HP')
<div class="card "
style="border-top: 5px solid purple;display: flex; align-items:center; padding:5%;">
<i style="margin-right:5%" class="material-icons">build</i>
<p style="margin: 0">
<strong>{{ $data->pelanggan->nama_pelanggan }}</strong> Melakukan
<strong>{{ $data->jenis_transaksi }}</strong>
Dengan
Total Belanja
<strong>Rp. {{ number_format($data->biaya) }} </strong>, dengan Kode Transaksi
<strong>{{ $data->no_transaksi }}</strong>
</p>
</div>
@else
<div class="card "
style="border-top: 5px solid purple;display: flex; align-items:center; padding:5%;">
<i style="margin-right:5%" class="material-icons">add_shopping_cart</i>
<p style="margin: 0">
<strong>{{ $data->pelanggan->nama_pelanggan }}</strong> Melakukan
<strong>{{ $data->jenis_transaksi }}</strong>
Dengan
Total Belanja
<strong>Rp. {{ number_format($data->biaya) }} </strong>, dengan Kode Transaksi
<strong>{{ $data->no_transaksi }}</strong>
</p>
</div>
@endif
@endforeach
@endif --}}
</div>
<!-- #END# Task Info -->
</div>
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]