List Item

Filter

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (Session::has('success'))
{{ Session::get('success') }}
@endif
@php $no = 0; @endphp @forelse($transactions as $key => $transaction) @if($transaction->status == 'not_complete' && !$is_has_access_create) @else @php $no+=1; $data_information = $transaction->item()->whereNull('parent_id')->get()->map(function($row) { return json_decode($row->total_data_information, true); })->pipe(function($row) { return collect([ 'total_buying_price' => $row->sum('total_buying_price'), 'total_weight' => $row->sum('total_weight'), ]); }); @endphp @endif @empty @endforelse
No Created By Tanggal Transaksi Nama Client Invoice Number Total Transaksi (Rp) Total Gramasi (Gram) Detail Invoice Status Action
{{ $no }} {{ $transaction->createdBy ? $transaction->createdBy->name : '~' }} {{ \Carbon\Carbon::parse($transaction->approval_date)->format('d F Y') }} {{ $transaction->buyer_name }} {{ $transaction->invoice_no }} {{ number_format($transaction->grand_total) }} {{ $data_information['total_weight'] }} @if($transaction->status == 'completed') Detail @else Detail @endif @if($data_information['total_weight']) Invoice @else - @endif @if($transaction->status == 'completed') Completed @else Uncompleted @endif @if(in_array(auth()->user()->username, ['201147', 'hdr', '200318']) && $transaction->status == 'completed') @else ~ @endif
Data not found