@extends('admin.layouts.main') @section('title', $currency->exists ? 'Edit Currency' : 'Create Currency') @section('menu', 'Currencies') @section('content')
@csrf @if($currency->exists) @method('PUT') @endif
{{ $currency->exists ? 'Edit' : 'New' }} Currency
@if ($errors->has('code')){{ $errors->first('code') }}@endif
@if ($errors->has('name')){{ $errors->first('name') }}@endif
@if ($errors->has('symbol')){{ $errors->first('symbol') }}@endif
@if ($errors->has('exchange_rate')){{ $errors->first('exchange_rate') }}@endif
is_base) ? 'checked' : '' }}>
is_active ?? true) ? 'checked' : '' }}>
Publish
@endsection