@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="block-header">
<h2>Laporan Retur Penjualan</h2>
</div>
<div class="row clearfix">
<!-- Task Info -->
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="card">
<div class="header">
<a href="{{ route('laporan') }}" class="btn btn-warning">Kembali</a>
</div>
<div class="body">
@include('layouts.includes.filter')
@if (\Helper::hakAkses('cetak_laporan', 'laporan_retur_penjualan'))
<form action="{{ route('laporan.returPenjualan.print') }}"target="_blank"
class="row flex-column-reverse">
<div class="col-md-6">
<input type="hidden" class="form-control" name="periode" id="daterange"
value="@if (isset($periode)) {{ $periode[0] }} - {{ $periode[1] }} @endif">
<input type="hidden" class="form-control" name="excel" value="0">
</div>
<div class="col-md-6 text-right">
<button type="submit" class="btn bg-light-green waves-effect">
<i class="material-icons">print</i>
<span>Cetak</span>
</button>
</div>
</form>
<form action="{{ route('laporan.returPenjualan.print') }}"target="_blank"
class="row flex-column-reverse">
<div class="col-md-6">
<input type="hidden" class="form-control" name="periode" id="daterange"
value="@if (isset($periode)) {{ $periode[0] }} - {{ $periode[1] }} @endif">
<input type="hidden" class="form-control" name="excel" value="1">
</div>
<div class="col-md-6 text-right">
<button type="submit" class="btn bg-green waves-effect">
<i class="material-icons">print</i>
<span>Cetak Excel</span>
</button>
</div>
</form>
@endif
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<div class="card">
<div class="header text-center">
<div>
<h4><i class="material-icons col-amber ">remove_shopping_cart</i> Jumlah Retur Penjualan
</h4>
</div>
</div>
<div class="body text-center" style="padding-top:0">
<div style="margin-bottom:0px;margin-top:0">
<h4> @if (isset($jumlahReturPenjualan))
{{ $jumlahReturPenjualan}}
@else
0
@endif
</h4>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<div class="card">
<div class="header text-center">
<div>
<h4><i class="material-icons col-indigo ">widgets</i>Jumlah Barang Yang Diretur
</h4>
</div>
</div>
<div class="body text-center" style="padding-top:0">
<div style="margin-bottom:0px;margin-top:0">
<h4> @if (isset($jumlahBarang))
{{ $jumlahBarang}}
@else
0
@endif
</h4>
</div>
</div>
</div>
</div>
</div>
<div class="table-responsive">
<table class="table table-hover dashboard-task-infos">
<thead>
<tr>
<th>No.</th>
<th>Tanggal</th>
<th>Nomor retur Penjualan</th>
<th>Barang</th>
<th>Nama Pelangan</th>
<th>Keterangan</th>
</tr>
</thead>
<tbody>
@foreach ($datas as $data)
<tr>
<td> {{ $loop->index + $datas->firstItem() }}</td>
<td>{{ $data->created_at->format('d-m-Y') }}</td>
<td>{{ $data->no_penjualan }}</td>
<td style="max-width: 300px;">
@foreach ($data->detail as $detail)
{!! $detail->nama_item . ',' . '<br>' !!}
@endforeach
</td>
<td>{{ $data->pelanggan->nama_pelanggan }}</td>
<td>{{ $data->keterangan }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
@include('layouts.includes.pagination')
</tfoot>
</table>
</div>
</div>
</div>
</div>
<!-- #END# Task Info -->
</div>
</div>
@endsection
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]