@extends('appshell::layouts.private') @section('title') {{ __('Payment Methods') }} @stop @section('content')
@yield('title')
@can('create payment methods') {!! icon('+') !!} {{ __('New Payment Method') }} @endcan
@foreach($paymentMethods as $paymentMethod) @endforeach
{{ __('Name') }} {{ __('Gateway') }} {{ __('No. of Transactions') }} {{ __('Enabled') }}  
@can('view payment methods') {{ $paymentMethod->getName() }} @else {{ $paymentMethod->getName() }} @endcan @if('null' === $paymentMethod->gateway) {{ $paymentMethod->getGatewayName() }} @else {{ $paymentMethod->getGatewayName() }} @endif {{ (int) $paymentMethod->transaction_count }} @if($paymentMethod->isEnabled()) {!! icon('active') !!} @else {!! icon('inactive') !!} @endif @can('edit payment methods') {{ __('Edit') }} @endcan @can('delete payment methods') {{ Form::open([ 'url' => route('vanilo.admin.payment-method.destroy', $paymentMethod), 'data-confirmation-text' => __('Delete this payment method: ":name"?', ['name' => $paymentMethod->getName()]), 'method' => 'DELETE' ])}} {{ Form::close() }} @endcan
@stop