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

@ -154,7 +154,7 @@
{!! view_render_event('sales.order.customer_group.after', ['order' => $order]) !!}
</div>
</div>
</div>
</div>
</div>
</accordian>
@ -190,7 +190,7 @@
</div>
</div>
@endif
</div>
</div>
</div>
</accordian>
@endif
@ -274,7 +274,7 @@
</div>
</div>
@endif
</div>
</div>
</div>
</accordian>
@ -362,7 +362,7 @@
</table>
</div>
</div>
<div class="summary-comment-container">
<div class="comment-container">

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
*/