$customer->getRouteKey(), 'key' => [ 'public' => $customer->getPublicKey(), 'route' => $customer->getRouteKey(), ], 'payment_term_id' => $customer->payment_term_id, 'currency_id' => $customer->currency_id, 'pricelist_id' => $customer->pricelist_id, 'tax_id' => $customer->tax_id, 'gst_scheme_id' => $customer->gst_scheme_id, 'payment_method_id' => $customer->payment_method_id, 'salution' => $customer->salution, 'first_name' => $customer->first_name, 'last_name' => $customer->last_name, 'name' => $customer->name, 'display_name' => $customer->display_name, 'email' => $customer->email, 'phone' => $customer->phone, 'mobile' => $customer->mobile, 'website' => $customer->website, 'password' => $customer->password, 'api_token' => $customer->api_token, 'remember_token' => $customer->remember_token, 'photo' => $customer->photo, 'fax' => $customer->fax, 'discount' => $customer->discount, 'price_include_tax' => $customer->price_include_tax, 'carrier' => $customer->carrier, 'days' => $customer->days, 'remarks' => $customer->remarks, 'facebook' => $customer->facebook, 'twitter' => $customer->twitter, 'contacts' => $customer->contacts, 'billing_address' => $customer->billing_address, 'shipping_address' => $customer->shipping_address, 'user_id' => $customer->user_id, 'user_type' => $customer->user_type, 'deleted_at' => $customer->deleted_at, 'slug' => $customer->slug, 'url' => [ 'public' => trans_url('customer/'.$customer->getPublicKey()), 'user' => guard_url('customer/customer/'.$customer->getRouteKey()), ], 'status' => trans('app.'.$customer->status), 'created_at' => format_date($customer->created_at), 'updated_at' => format_date($customer->updated_at), ]; } }