Add order customer phone
This commit is contained in:
parent
f4ead7df81
commit
93aa14e969
|
|
@ -133,7 +133,7 @@
|
|||
</span>
|
||||
|
||||
<span class="value">
|
||||
{{ $order->customer->phone }}
|
||||
{{ $order->customer_email }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue