@extends('layouts.admin')
@section('page-title','')
@section('breadcrumb')
@include('admin.partials.crumb',[
'crumbs'=>[
route('admin.dashboard')=>__('default.dashboard'),
'#'=>isset($pageTitle)?$pageTitle:''
]])
@endsection
@section('content')
{{ __lang('add-new') }}
# | {{ __lang('user') }} | {{ __lang('items') }} | {{ __lang('payment-method') }} | {{ __lang('amount') }} | {{ __lang('currency') }} | {{ __lang('created-on') }} | {{ __lang('status') }} | {{__lang('actions')}} | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $row->id }} | @if($row->user) {{ $row->user->name }} {{ $row->user->last_name }} ({{ $row->user->email }}) @else N/A @endif | @php $cart = unserialize($row->cart); try{ echo $cart->getTotalItems().' '.__lang('items'); } catch(\Exception $ex){ echo '0 '.__lang('items'); } @endphp | @if($row->paymentMethod) {{ $row->paymentMethod->name }} @endif | {{formatCurrency($row->amount,$row->currency->country->currency_code)}} | {{ $row->currency->country->currency_code }} | {{ showDate('d/M/Y',$row->created_at) }} |
@php if($row->paid == 1): @endphp {{ __lang('paid') }} @php else: @endphp {{ __lang('unpaid') }} @php endif; @endphp |
@php if($row->paid == 0): @endphp | @php endif; @endphp||||||||
@php if(is_object($cart)): @endphp
@if($cart->isCertificate())
{{ __lang('discount') }}: {{$cart->getDiscount()}}% |