| 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/moneyExchangeListList.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="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table
id="zero_config"
class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>{{__('message.from')}}</th>
<th>{{__('message.to')}}</th>
<th>{{__('message.calculation')}}</th>
<th>{{__('message.current exchange rate')}}</th>
<th>{{__('message.last updated rate')}}</th>
<th>{{__('message.status')}}</th>
<th>{{__('message.order')}}</th>
<th>{{__('message.created by')}}</th>
<th>{{__('message.action')}}</th>
</tr>
</thead>
<tbody>
@foreach($moneyExchangeLists as $index => $moneyExchangeList)
<tr @if(!$moneyExchangeList->is_active) class="disabled-row" @endif>
<td>{{$index+1}}</td>
<td>{{$moneyExchangeList->exchangeFromCurrency->name??''}}</td>
<td>{{$moneyExchangeList->exchangeToCurrency->name??''}}</td>
<td>
{{$moneyExchangeList->calculation}}
</td>
<td class="credit">
{{number_format($moneyExchangeList->current_rate,$moneyExchangeList->exchangeToCurrency->decimal_precision??2) }}
</td>
<td>
{{ Carbon\Carbon::parse($moneyExchangeList->last_updated_rate)->format('d/m/Y H:i')}}
</td>
<td>
{{$moneyExchangeList->is_active?__('message.active'):__("message.inactive")}}
</td>
<td>{{$moneyExchangeList->order}}</td>
<td>{{$moneyExchangeList->user->name??''}}</td>
<td>
<a href="{{route('money-exchange-lists.edit',$moneyExchangeList)}}" class="btn btn-primary btn-sm"><i class="fa fa-eye"></i></a>
<form method="POST" action="{{route('money-exchange-lists.destroy', $moneyExchangeList)}}" style="display:inline">
<input name="_method" type="hidden" value="DELETE">
{{ csrf_field() }}
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('{{ __('message.do you want to delete') }}?')">
<i class="fas fa-trash" style="color: #FFF;"></i>
</button>
</form>
@if($moneyExchangeList->is_active)
<a href="{{route('rate-create',$moneyExchangeList)}}" class="btn btn-primary btn-sm">
<i class="fas fa-dollar-sign"></i>
{{__('message.update rate')}}
</a>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="rows">
{{ $moneyExchangeLists->appends($_GET)->links() }}
@if($moneyExchangeLists->hasPages())
<select name="perpage" style="display: inline;border:1px solid #CCC;" onchange="loadPerPage();">
<option value="25" @if(isset($perpage) & $perpage==25) selected @endif>25</option>
<option value="50" @if(isset($perpage) & $perpage==50) selected @endif>50</option>
<option value="100" @if(isset($perpage) & $perpage==100) selected @endif>100</option>
<option value="150" @if(isset($perpage) & $perpage==150) selected @endif>150</option>
<option value="200" @if(isset($perpage) & $perpage==200) selected @endif>200</option>
<option value="250" @if(isset($perpage) & $perpage==250) selected @endif>250</option>
<option value="300" @if(isset($perpage) & $perpage==300) selected @endif>300</option>
<option value="350" @if(isset($perpage) & $perpage==350) selected @endif>350</option>
<option value="400" @if(isset($perpage) & $perpage==400) selected @endif>400</option>
<option value="1000" @if(isset($perpage) & $perpage==1000) selected @endif>1000</option>
<option value="1500" @if(isset($perpage) & $perpage==1500) selected @endif>1500</option>
</select>
@endif
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('meta')
<title>{{__('message.money exchange list')}}</title>
@endsection