Path : /var/www/html/jewelry-pos/resources/views/currencies/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/jewelry-pos/resources/views/currencies/index.blade.php |
@extends('layouts.admin-main') @section('content') <div class="col-lg-12"> <div class="card-body shadow-1"> <div class="row"> <div class="col-lg-12 margin-tb"> <div class="pull-right mb-2" style="text-align: right;"> @can('currency-create') <a class="btn btn-sm btn-primary" href="{{ route('currencies.create') }}"> <i class="fal fa-plus"></i> {{ __('message.add new') }} </a> @endcan </div> </div> </div> <div class="panel-container show"> <div class="d-flex flex-column h-100"> <div class="h-auto"> <table id="example" class="table table-bordered table-hover table-striped w-100"> <thead class="bg-fusion-400"> <tr> <th>#</th> <th>{{ __('message.name') }}</th> <th>{{ __('message.symbol') }}</th> <th>{{ __('message.exchange in rate') }}</th> <th>{{ __('message.exchange out rate') }}</th> <th>{{ __('message.base currency') }}</th> <th>{{ __('message.status') }}</th> <th>{{ __('message.created date') }}</th> <th>{{ __('message.action') }}</th> </tr> </thead> <tbody> @foreach ($currencies as $index => $currency) <tr @if(!$currency->is_active) class="inactive" @endif> <td>{{ $index+1 }}</td> <td>{{ $currency->name }}</td> <td>{{ $currency->currency_symbol }}</td> <td class="credit">{{ number_format($currency->exchange_in_rate,4) }}</td> <td class="credit">{{ number_format($currency->exchange_out_rate,4) }}</td> <td> <input type="checkbox" readonly @if($currency->is_based) checked @endif> </td> <td> @if ($currency->is_active) <label class="badge badge-success"> {{__('message.active')}} </label> @else <label class="badge badge-danger"> {{__('message.inactive')}} </label> @endif </td> <td> {{ $currency->created_at->format('d/m/Y H:i') }} <td> @can('currency-edit') @if ($currency->is_active == 1) <a href="{{ route('currency.inactive', $currency->id) }}" class="btn btn-sm btn-danger" title="Inactive Now">{{ __('message.deactivate') }}</a> @else <a href="{{ route('currency.active', $currency->id) }}" class="btn btn-sm btn-success" title="Active Now"> {{ __('message.activate') }} </a> @endif @if ($currency->is_active) <a class="btn btn-sm btn-info" href="{{ route('currencies.edit', $currency->id) }}"><i class="fal fa-pen" title="{{__('message.edit')}}"></i></a> @endif @endcan <!-- <form method="POST" action="currencies/{{$currency->id}}" style="display:inline"> <input name="_method" type="hidden" value="DELETE"> {{ csrf_field() }} <button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('{{ __('message.do you want to delete') }}?')"> <i class="fal fa-trash" style="color: #FFF;"></i> </button> --> </td> </tr> @endforeach </tbody> </table> <!-- datatable end --> </div> </div> </div> </div> <div class="py-4 mt-4 mx-2 "> <!-- Pagination bootstrap--> {{ $currencies->appends($_GET)->links() }} </div> </div> @endsection @section('scripts') <script> $(document).ready(function() { $("#js-nav-menu").removeClass('active'); $("#js-nav-menu li ul li").removeClass('active'); $("#menu_setup_list").addClass('active open'); $("#collapse_setup").addClass('collapse in') $("#menu_currency").addClass('active') }) </script> @endsection @section('meta') <title>{{__('message.currency')}} - {{$settings_->shop_name}}</title> @endsection