@extends('backend.master') @section('content')
Mobile Gateways
Create
@if(session('success'))
{{ session('success') }}
@endif
@forelse($gateways as $g) @empty @endforelse
# Logo Name Code Limits Fees Status Actions
{{ $g->id }} @php $p = $g->logo_path; $isStored = $p && \Illuminate\Support\Facades\Storage::disk('public')->exists($p); $isUrl = $p && \Illuminate\Support\Str::startsWith($p,['http://','https://']); @endphp @if($isStored) logo @elseif($isUrl) logo @elseif($p)
{{ $p }}
@else None @endif
{{ $g->name }} {{ $g->code }} ৳{{ number_format($g->min_limit,2) }} — ৳{{ number_format($g->max_limit,2) }}
Flat: ৳{{ number_format($g->flat_fee,2) }}
%: {{ number_format($g->percent_fee,2) }}
Min/Max: ৳{{ number_format($g->min_commission,2) }} / ৳{{ number_format($g->max_commission,2) }}
{{ $g->is_active ? 'Active' : 'Inactive' }}
@csrf @method('PATCH')
Edit View
@csrf @method('DELETE')
No gateways
{{ $gateways->links() }}
@endsection