@extends('layouts.admin') @section('title'){{__('Initiate')}} {{ __('Recharge') }} @endsection @section('content') @include('includes.page_header',['title'=>__('Initiate')." ". __('Recharge'),'url'=>route('admin.dashboard'),'icon' => $icon??'','permission'=>'PriorityRoute-view'])
{!! Form::open(['route' => 'admin.productPage', 'files' => true]) !!}
{!! Form::label('phone', __('Phone Number')) !!} {!! Form::text('phone', $phone??null, ['class' => 'form-control','placeholder' => 'Phone Number','readonly']) !!}
@php use App\Models\User; use App\Models\Wallet; $users = User::get()->pluck('name','id'); $wallets = Wallet::get()->pluck('name','id'); @endphp
{!! Form::label('user_id', __('User')) !!} {!! Form::select('user_id', $users, null, ['class' => 'form-control','placeholder' => 'Select User','required']) !!}
{!! Form::label('wallet_id', __('Wallet')) !!} {!! Form::select('wallet_id', $wallets, null, ['class' => 'form-control','placeholder' => 'Select Wallet','required']) !!}
@foreach ($available_products as $product)
{{$product->name}}
@php $operator = json_decode($product->operator); $country = $operator->country; $prices = json_decode($product->prices); $wholesale_prices = $prices->wholesale; @endphp

{!! $operator->name !!}

{!! $country->name !!}

@endforeach
{!! Form::close() !!}
@endsection