@extends('layouts.app', ['title' => __('Restaurants Sales')]) @section('admin_title') {{__('Restaurants Sales')}} @endsection @section('content') @include('restorants.partials.modals')
| {{ __('Id') }} | {{ __('Name') }} | {{ __('Owner') }} | {{ __('Phone Number') }} | {{ __('City') }} | {{ __('State') }} | {{ __('Zip Code') }} | {{ __('Sales Value') }} | {{ __('Zip Code') }} | {{ __('Comission Rate') }} | {{ __('Creation Date') }} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $order->restorant->id }} | {{ $order->restorant->name }} | {{ $order->restorant->user ? $order->restorant->user->name:__('Deleted') }} | @php $phone = preg_replace('/\D/', '', $order->restorant->phone); // remove non-digits if (strlen($phone) === 10) { $phone = '(' . substr($phone, 0, 3) . ')' . substr($phone, 3, 3) . '-' . substr($phone, 6); } @endphp {{ $phone }} | {{ $order->restorant->city}} | {{ $order->restorant->state}} | {{ $order->restorant->zip_code}} | {{ number_format($order->total_sales, 2) }} | {{ $order->restorant->zip_code }} | {{ $order->restorant->fee }}% | {{ \Carbon\Carbon::parse($order->last_order_date)->format('Y-m-d H:i') }} |