@extends('layout') @section('css') @endsection @section('content')
{{--
--}}

{{-- super admin, kepala gudang --}} @if (in_array(\Auth::user()->role,[1,4]))
@csrf
Download Excel data
@endif
@php $i = 1; @endphp @if(!$pengeluarans->isEmpty()) @foreach($pengeluarans as $pengeluaran) @php $i++; @endphp @endforeach @else @endif
No. No. Transaksi Kategori Debit Kredit Actions
{{$i}}
{{ @$pengeluaran->no_pengeluaran?@$pengeluaran->no_pengeluaran:'-' }}
Jenis : {{$pengeluaran->kategori_pengeluaran? config('custom.kategori_pengeluaran.'.$pengeluaran->kategori_pengeluaran) : '-'}} @if (in_array($pengeluaran->kategori_pengeluaran,[3]))
Driver : {{@$pengeluaran->driver->nama}} @endif
@foreach ($pengeluaran->pengeluarandriverdetail as $detail) @if (!$loop->first) , @endif {{ @$detail->kategoripengeluaran->nama }} @endforeach
@if (in_array($pengeluaran->kategori_pengeluaran,[2])) @php $dtotal = 0; foreach ($pengeluaran->pengeluarandriverdetail as $detail) { $dtotal += $detail->debit * $detail->qty; } @endphp Rp {{ribuan($dtotal)}} @else - @endif
@if (in_array($pengeluaran->kategori_pengeluaran,[1,3])) @php $ktotal = 0; foreach ($pengeluaran->pengeluarandriverdetail as $detail) { $ktotal += $detail->kredit * $detail->qty; } @endphp Rp {{ribuan($ktotal)}} @else - @endif
Data Kosong
{{--
@csrf
Tambah Pengeluaran Driver
Reset
--}}
@endsection @section('js') @endsection