@extends('_version_02.commons.layouts.admin') @section('content') @include('_version_02.commons.layouts.partials._alert')
@php $priority_counter = 1 ; @endphp @foreach($cols as $col) @if($col != 'store_id') @if($col == 'id') @elseif(str_contains($col, '_id')) @else @endif @endif @php $priority_counter ++ ; @endphp @endforeach @php $priority_counter = 1 ; @endphp @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @if($key == 'status') @elseif($key == 'payment_method') @elseif($key == 'total_amount') @elseif($key == 'reference_no') @if($row['payment_method'] == 'credit_card') @else @endif @elseif($key != 'id') @endif @endforeach @endforeach
#{{App\Language::trans(ucwords(str_replace('_id', '', $col)))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$index+1}}{{$row->display_status_string($key)}}{{App\Setting::payment_method_to_word($value)}}{{$row->setDouble($value)}}{{App\Setting::credit_card_masking($value,"*")}}{{$value}}{{$value}} {{App\Language::trans('View')}} | {{App\Language::trans('Print')}} | {{App\Language::trans('Del')}}
@endsection @section('script') var customerInfoUrl = "{{action('CustomersController@getInfo')}}"; function init_customer_info(me) { $.get(customerInfoUrl, {customer_id:$(me).val()}, function(fdata){ for (var key in fdata.data) { console.log("key " + key + " has value " + fdata.data[key]); } },"json"); } init_select2($("select[name=customer_id]")); init_select2($("select[name=sort_by]")); @endsection