@extends('admin.layouts.master') @php $can_update = Gate::allows('update', $config) ?? null; $active_payment_methods = $config->paymentMethods->pluck('id')->toArray(); $has_config = false; @endphp @section('content')
{{ $type }}
@endif{!! get_payment_method_type($type_id)['description'] !!}
{{ $payment_provider->name }}
@endif{!! $payment_provider->description !!}
@if (in_array($payment_provider->id, $active_payment_methods)) @if ($can_update) @php $has_config = !empty($config->{$payment_provider->code}) && in_array($payment_provider->code, (array) $config); @endphp @unless ($has_config)