@extends('admin.adminlayout') @section('page_title') {{__("Discounts")}} - @endsection @section('content')
@include('starter-kit::component.err')
@csrf @foreach ($discounts as $n) @endforeach
# {{__("Type")}} {{__("Amount")}} {{__("Product")}} {{__("Expire")}} {{__("Action")}}
{{$n->id}} {{__($n->type)}} @if($n->type == 'percent') {{$n->amount}}% @else {{number_format($n->amount)}} {{config('app.currency_type')}} @endif @if($n->product != null) {{$n->product->name}} @else - @endif @if($n->expire == null) - @else {{$n->expire->jdate('Y/m/d')}} @endif
@include('starter-kit::component.bulk',['actions' => []])
{{$discounts->links()}}
@endsection