@extends('admin.adminlayout') @section('page_title') {{__("Invoices")}} - @endsection @section('content')
@include('starter-kit::component.err')
{{__("Filter")}}: {{__("All")}} @foreach(['PENDING','PROCESSING','COMPLETED','CANCELED','FAILED'] as $f) {{__($f)}} @endforeach
@csrf @foreach ($invoices as $invoice) @endforeach
{{__("Customer")}} {{__("Total Price")}} {{__("Product")}} {{__("Status")}} {{__("Date")}} {{__('Payment Type')}} {{__("Action")}} {{-- --}}
{{$invoice->customer->name}} {{number_format($invoice->total_price)}} {!! $invoice->products->implode('name','
') !!} @if($invoice->invoice != null) [ {{__("Belong to")}} ] @endif
{{__($invoice->status)}} {{__($invoice->created_at->jdate('Y/m/d H:i:s'))}} {{$invoice->successPayments->implode('type',', ')}}
@include('starter-kit::component.bulk',['actions' =>[ 'PENDING' => __("Pending"), 'PROCESSING' => __("Processing"), 'COMPLETED' => __("Completed"), 'CANCELED' => __("Canceled"), 'FAILED' => __("Failed") ] ])
{{$invoices->links()}}
@endsection