@extends('layouts.admin') @section('content') @include('include.datatable-css')
@include('include.create-button', ['url' => route('add-payment-method')]) @include('include.export-button') @include('include.refresh-button')
@include('include.flash-message')
@foreach ($data as $record) @endforeach
Name Code Status Created On Action
{{ $record->name }} @switch($record->code) @case('STR') CARD @break @case('COD') CASH ON DELIVERY @break @case('INT') INTRAC @break @default @break @endswitch @if ($record->active == '1') Active @else Active @endif {{ $record->created_at }}
@if (is_countable($data)) @foreach ($data as $paymentMethod) @endforeach @endif @include('include.datatable') @include('include.filters-common-js-part') @include('include.datatable-date-range-selector-js', ['url' => 'payment-methods']) {{-- Page specific JS --}} @endsection