@extends('layouts.admin') @section('content') @include('include.datatable-css')
Account Id | First Name | Last Name | Phone | Address Type | House Number | Street | City | Zipcode | Address | Status | Address Verified | Partial Payment | Reference Code | Total Tiffins | Remaining Tiffins | Joined On | Action | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $item->accountId }} | {{ $item->firstName }} | {{ $item->lastName }} | {{ $item->phone }} | {{ $item->email }} | {{ isset($item->address) ? $item->address->addressType : '' }} | @isset($item->address){{ $item->address->houseNumber }} | {{ $item->address->street }} | {{ $item->address->city }} | {{ $item->address->zipcode }} | {{ $item->address->address }}, {{ $item->address->city }} | @else@endisset | @if ($item->active == '1') Active @else Active @endif | @if ($item->address != NULL) @if ($item->address->address_verified == 1) Verified @else Unverified @endif @else No address @endif |
partialPayment) onclick="togglePartialPayment({{ $item->id }})">
|
{{ $item->reference_code }} | @php $orders = $item->orders; $total = 0; $remaining = 0; foreach ($orders as $o) { $total += $o->total_tiffins; $remaining += $o->remaining_tiffins; } @endphp {{ $total }} | {{ $remaining }} | {{ $item->created_at }} |