@extends('utility_charges.layouts.admin') @section('content') @include('utility_charges.layouts.partials._alert')

{{App\Language::trans('Listing Information')}}

@foreach($cols as $col) @if($col == 'id') @else @endif @endforeach @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @if($key == 'status') @elseif($key != 'id') @endif @endforeach @endforeach
#{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$index+1}}{{$row->display_status_string($key)}}{{$value}} {{App\Language::trans('Edit')}} | {{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