@extends('backend.master') @section('content')
Exchange Countries
Create
@if(session('success'))
{{ session('success') }}
@endif
@forelse($countries as $c) @empty @endforelse
# Flag Country Currency Unit Rate (BDT) Header Pos Status Actions
{{ $c->id }} @php $p = $c->flag_path; $isStored = $p && \Illuminate\Support\Facades\Storage::disk('public')->exists($p); $isUrl = $p && \Illuminate\Support\Str::startsWith($p,['http://','https://']); @endphp @if($isStored) flag @elseif($isUrl) flag @elseif($p)
{{ $p }}
@else None @endif
{{ $c->name }}
{{ $c->slug }}
{{ $c->currency_name }} {{ $c->unit_label ?: '1' }} ৳{{ number_format($c->rate_bdt,2) }} @if($c->header_bg) {{ $c->header_bg }} @else @endif {{ $c->position }} {{ $c->is_active ? 'Active' : 'Inactive' }}
@csrf @method('PATCH')
Edit View
@csrf @method('DELETE')
No countries
{{ $countries->links() }}
@endsection