@extends('layouts.app') @section('page-title')| Order History @endsection @section('content') @php $resto = \App\Models\Restaurants::find(\App\Helpers\CommonMethods::getRestuarantID()); $lang = $resto->default_lang; app()->setLocale($lang); if(session('app_lang') !==null){ $lang = session('app_lang'); app()->setLocale($lang); } $restuarant1 = $resto ; $resto_metas = \App\Helpers\CommonMethods::getRestoMetas($restuarant1); $currency = isset($resto_metas['BUSSINESS_CCY'])?$resto_metas['BUSSINESS_CCY']:"IQD"; $is_tax_info = isset($resto_metas['DISPLAY_TAX_INFO'])?$resto_metas['DISPLAY_TAX_INFO']:""; $business_type = isset($resto_metas['BUSSINESS_TYPE'])?$resto_metas['BUSSINESS_TYPE']:"Restaurants"; $translations = \App\Models\Translations::whereIn('item_key',['delivery','delivered','rejected','cancelled','close'])->get(); $tr_ar = []; $tr_en = []; foreach($translations as $tr){ if($tr->lang_id=="en") $tr_en[ucwords($tr->item_key)]= $tr->item_val; else $tr_ar[ucwords($tr->item_key)]= $tr->item_val; } @endphp @if($lang=="ar") @endif