@php $contractType = $item->cloud_plan ?? $item->miner; @endphp
@if($contractType->image) {{ $contractType->name }} @else No image @endif
  • Contract Type: @if ($item->cloud_plan) Buy Cloud @else @if ($item->miner->type == 'rent') Rent Asic @else Buy Asic @endif @endif
  • Username: {{ $item->user->name ?? 'Deleted' }}
  • Useremail: {{$item->user->email ?? 'Deleted' }}
  • Asic Name: {{ $contractType->name }}
  • Status: {{ $item->status === 'active' ? 'Active' : 'Expired'}}
  • Hashrate : {{ $item->hashrate }} TH/s
  • @if ($item->start_date || $contractType->type != 'buy')
  • Contract Period: {{ $item->start_date }} → {{ $item->end_date }}
  • Remaining Days: {{ \Carbon\Carbon::now()->diffInDays(\Carbon\Carbon::parse($item->end_date), false) > 0 ? \Carbon\Carbon::now()->diffInDays(\Carbon\Carbon::parse($item->end_date)) . ' days' : 'Expired' }}
  • @endif
  • Amount Paid: ${{ number_format($item->amount, 2) }}
@if ($contractType->type != 'buy') Earnings @endif
{{-- Delete Confirmation Modal --}}