| Path : /var/www/html/moneyexchange/resources/views/moneyExchangeList/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/moneyexchange/resources/views/moneyExchangeList/moneyExchangeListForm.blade.php |
@extends('layouts.main')
@section('content')
<div class="page-wrapper">
<div class="page-breadcrumb">
<div class="row">
<div class="col-12 d-flex no-block align-items-center">
<h4 class="page-title">{{__('message.money exchange list')}}</h4>
<div class="ms-auto text-end">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{{route('money-exchange-lists.create')}}" class="btn btn-primary btn-sm">
<i class="fa fa-plus"></i>
{{{__('message.add new')}}}
</a>
</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<div class="container-fluid" style="padding-top: 0px;">
<div class="card">
<div class="card-body form wizard-content">
@if(empty($moneyExchangeList))
<form method="POST" action="{{route('money-exchange-lists.store')}}" class="mt-5" enctype="multipart/form-data">
{{ csrf_field() }}
<section class="col-sm-6">
<div class="mb-3">
<label>{{__('message.from')}}</label>
<select class="form-select" name="exchange_from_currency_id">
@foreach($currencies as $index=>$currency)
<option value="{{$currency->id}}">
{{$currency->name}}
</option>
@endforeach
</select>
</div>
<div class="mb-3">
<label>{{__('message.to')}}</label>
<select class="form-select" name="exchange_to_currency_id">
@foreach($currencies as $index=>$currency)
<option value="{{$currency->id}}">
{{$currency->name}}
</option>
@endforeach
</select>
</div>
<div class="mb-3">
<label>{{__('message.calculation')}}</label>
<select class="form-select" name="calculation">
<option value="x">
x
</option>
<option value="/">
/
</option>
</select>
</div>
<div class="mb-3 mt-3">
<label>{{__('message.order')}}</label>
<input type="number" class="form-control" placeholder="{{__('message.order')}}" name="order" step="1">
</div>
<div class="text-center">
<button class="btn btn-danger btn-sm" type="button" onclick="window.history.back();">
{{__('message.cancel')}}
</button>
<button type="submit" class="btn btn-primary btn-sm">
<i class="fa fa-save"></i>
{{__('message.save')}}
</button>
</div>
</section>
</form>
@else
<form method="POST" action="{{route('money-exchange-lists.update', $moneyExchangeList)}}" class="mt-5" enctype="multipart/form-data">
<input name="_method" type="hidden" value="PUT">
{{ csrf_field() }}
<section class="col-sm-6">
<div class="mb-3">
<label>{{__('message.from')}}</label>
<select class="form-select" name="exchange_from_currency_id">
@foreach($currencies as $index=>$currency)
<option value="{{$currency->id}}" @if($currency->id==$moneyExchangeList->exchange_from_currency_id) selected @endif>
{{$currency->name}}
</option>
@endforeach
</select>
</div>
<div class="mb-3">
<label>{{__('message.to')}}</label>
<select class="form-select" name="exchange_to_currency_id">
@foreach($currencies as $index=>$currency)
<option value="{{$currency->id}}" @if($currency->id==$moneyExchangeList->exchange_to_currency_id) selected @endif>
{{$currency->name}}
</option>
@endforeach
</select>
</div>
<div class="mb-3">
<label>{{__('message.calculation')}}</label>
<select class="form-select" name="calculation">
<option value="x" @if($moneyExchangeList->calculation=='x') selected @endif>
x
</option>
<option value="/" @if($moneyExchangeList->calculation=='/') selected @endif>
/
</option>
</select>
</div>
<div class="mb-3 mt-3">
<label>{{__('message.order')}}</label>
<input type="number" class="form-control" placeholder="{{__('message.order')}}" name="order" step="1" value="{{$moneyExchangeList->order}}">
</div>
<div class="mb-3">
<label>{{__('message.status')}}</label>
<select class="form-select" name="is_active">
<option value="1" @if($moneyExchangeList->is_active) selected @endif>{{__('message.enable')}}</option>
<option value="0" @if(!$moneyExchangeList->is_active) selected @endif>{{__('message.disable')}}</option>
</select>
</div>
<div class="text-center">
<button class="btn btn-danger btn-sm" type="button" onclick="window.history.back();">
{{__('message.cancel')}}
</button>
<button type="submit" class="btn btn-primary btn-sm">
<i class="fa fa-save"></i>
{{__('message.save')}}
</button>
</div>
</section>
</form>
@endif
</div>
</div>
</div>
</div>
@endsection
@section('meta')
<title>{{__('message.money exchange list')}}</title>
@endsection