@extends('admin.layouts.app') @section('panel')
@if (request()->routeIs('admin.gold.history.redeem'))
@endif
@if (request()->routeIs('admin.gold.history.gift')) @endif @if (request()->routeIs('admin.gold.history.buy')) @endif @if (request()->routeIs('admin.gold.history.redeem')) @endif @forelse($goldHistories as $goldHistory) @if (request()->routeIs('admin.gold.history.gift')) @endif @if (request()->routeIs('admin.gold.history.buy')) @endif @if (request()->routeIs('admin.gold.history.redeem')) @endif @empty @endforelse
@lang('User')@lang('Recipient')@lang('Date & Time') @lang('Trx') @lang('Category') @lang('Quantity') @lang('Amount & Charge')@lang('Vat')@lang('Status') @lang('Action')
{{ $goldHistory->user->fullname }}
@{{ $goldHistory->user->username }}
{{ $goldHistory->recipient->fullname }}
@{{ $goldHistory->recipient->username }}
{{ showDateTime($goldHistory->created_at) }}
{{ diffForHumans($goldHistory->created_at) }}
{{ $goldHistory->trx }} {{ __($goldHistory->category->name) }}
{{ $goldHistory->category->karat }} @lang('Karat')
{{ showAmount($goldHistory->quantity, 4, currencyFormat: false) }} @lang('gram') {{ showAmount($goldHistory->amount) }}
{{ showAmount($goldHistory->charge) }}
{{ showAmount($goldHistory->vat) }} @php echo $goldHistory->redeemData->statusBadge; @endphp @if ($goldHistory->redeemData->status == Status::REDEEM_STATUS_PROCESSING) @elseif($goldHistory->redeemData->status == Status::REDEEM_STATUS_SHIPPED) @endif
{{ __($emptyMessage) }}
@if ($goldHistories->hasPages()) @endif
@endsection @if (!request()->routeIs('admin.gold.history.redeem')) @push('breadcrumb-plugins') @endpush @endif @if (request()->routeIs('admin.gold.history.redeem')) @push('script') @endpush @endif