@extends('admin.layout.main') @section('title', 'Data Report - ') @section('content')
{{-- // filter date and status --}}
@csrf
{{-- // end filter date and status --}}
@if ($errors->any())
@foreach ($errors->all() as $error)
  • {{ $nomer++ }}. {{ $error }}
  • @endforeach
    @endif
    @foreach ($transaksi as $data) {{-- Edit Status Modal --}} {{-- End Modal --}} @endforeach
    No Name Status Pembayaran Product Total Date Action
    {{ $loop->iteration }} {{ $data->user->name }} @if ($data->status_pembayaran == 'Belum Pilih Pembayaran') {{ $data->status_pembayaran }} @elseif($data->status_pembayaran == 'pending') {{ $data->status_pembayaran }} @elseif($data->status_pembayaran == 'expire') {{ $data->status_pembayaran }} @elseif($data->status_pembayaran == 'paid') {{ $data->status_pembayaran }} @endif @foreach ($data->detailTransaksi as $item) {{ $item->product->nama }} x {{ $item->jumlah }}
    Rp. {{ number_format($item->total_harga) }}
    @endforeach
    Rp. {{ number_format($data->total_harga) }} {{ date('d-m-Y', strtotime($data->created_at)) }}
    @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $nomer++ }}. {{ $error }}
  • @endforeach
    @endif
    @foreach ($total as $index => $data2) @endforeach
    No Date Total
    {{ $index + 1 }} {{ date('d-m-Y', strtotime($data2->date)) }} Rp. {{ number_format($data2->total_revenue) }}
    @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $nomer++ }}. {{ $error }}
  • @endforeach
    @endif
    @foreach ($result as $index => $data) @endforeach
    No Product Jumlah Total
    {{ $index + 1 }} {{ $data['name'] }} {{ $data['total_sold'] }} Rp. {{ number_format($data['total_revenue']) }}
    @endsection @section('script') @endsection