Add order customer phone

This commit is contained in:
Shohrat 2023-09-13 20:35:07 +05:00
parent f4ead7df81
commit 93aa14e969
3 changed files with 13 additions and 5 deletions

View File

@ -133,7 +133,7 @@
</span>
<span class="value">
{{ $order->customer->phone }}
{{ $order->customer_email }}
</span>
</div>

View File

@ -61,6 +61,14 @@ class Order extends Model implements OrderContract
return $this->customer_first_name . ' ' . $this->customer_last_name;
}
/**
* Get the customer email
*/
public function getCustomerEmailAttribute(): string
{
return $this->customer()->phone;
}
/**
* Returns the status label from status code
*/