@extends('layouts.app') @section('page-title')| {{__('label.discounts')}} @endsection @section('css') @endsection @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); } @endphp @section('content')

{{__('label.paymentlinks')}}

@php $restuarant1 = $resto; $resto_meta = isset($restuarant1->resto_metas)?$restuarant1->resto_metas:null; //dump($resto_meta); $resto_metas = []; $billing = []; if(isset($resto_meta)){ foreach($resto_meta as $meta){ $index_name = isset($meta->resto_meta_defs->parents)?$meta->resto_meta_defs->parents->meta_def_name:(isset($meta->resto_meta_defs)?$meta->resto_meta_defs->meta_def_name:""); // dump($meta->resto_meta_defs); if($index_name=="BILLING_GATEWAY"){ // dump($meta->resto_meta_defs->meta_def_name); // $resto_metas['BILLING_GATEWAY'][] = $meta->meta_val; $billing[] = array('id'=>$meta->meta_id,'value'=>$meta->meta_val); } $resto_metas[$index_name] = $meta->meta_val; } } $resto_metas['BILLING_GATEWAY'] = $billing; $currency = isset($resto_metas['BUSSINESS_CCY'])?$resto_metas['BUSSINESS_CCY']:"IQD"; $business_type = isset($resto_metas['BUSSINESS_TYPE'])?$resto_metas['BUSSINESS_TYPE']:"Restaurants"; @endphp
@if(isset($payment_links) && $payment_links->count() > 0) @foreach($payment_links as $payment_link) @endforeach @endif
{{__('label.purpose')}} {{__('label.outletname')}} {{__('label.amount')}} {{__('label.usage')}} {{__('label.creation_date')}}
{{__('label.active')}} {!! $payment_link->purpose_payment !!} {!! $payment_link->outlet_id !!} {!! $payment_link->amount !!} {!! $payment_link->number_of_uses !!} {!! \Carbon\Carbon::parse($payment_link->created_at)->format('d, M Y') !!} {{-- --}}
@endsection @section('js') @endsection