@extends('layouts.master') @section('title', $title) @section('vendor-style') @endsection @section('content') @include('layouts._breadcrumb', [ 'list' => [ ['data' => trans('admin.dashboard'), 'url' => route('admin.landing')], ['data' => $title, 'url' => null], ], ])
@if(isset($filters)) @if(in_array('client', $filters))
@endif @if(in_array('provider', $filters))
@endif @if(in_array('user', $filters))
@endif @if(in_array('service', $filters))
@endif @if(in_array('status', $filters))
@endif @if(in_array('type', $filters))
@endif @if(in_array('name', $filters))
@endif @if(in_array('phone', $filters))
@endif @if(in_array('order_id', $filters))
@endif @if(in_array('method', $filters))
@endif @endif
{{ trans('admin.reset') }}
@foreach($data as $index => $item)
{{ $item['label'] }}

{{ is_numeric($item['value']) ? (fmod($item['value'], 1) !== 0.0 ? number_format($item['value'], 2) : number_format($item['value'])) : $item['value'] }}

@if(isset($item['action_btn']) && $item['action_btn']) @endif
@endforeach
@if(isset($columns))
@foreach($columns as $col) @endforeach
{{ $col['title'] }}
@endif @endsection @section('vendor-script') @endsection @section('page-script') @if(isset($columns)) @include('layouts._datatable', [ 'url' => url()->current(), 'header' => $title, 'columns' => array_map(function($col) { return ['data' => $col['data'], 'name' => $col['name'] ?? $col['data'], 'orderable' => $col['orderable'] ?? true, 'searchable' => $col['searchable'] ?? true]; }, $columns), 'filters' => [ 'date_from' => '#date_from', 'date_to' => '#date_to', 'status' => '#status', 'type' => '#type', 'name' => '#name', 'phone' => '#phone', 'client_id' => '#client_id', 'provider_id' => '#provider_id', 'service_id' => '#service_id', 'order_id' => '#order_id', 'method' => '#method', 'user_id' => '#user_id', ] ]) @endif @endsection