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

{{App\Language::trans('Advance Search')}}

{!!Form::model($model, ['class'=>'form-horizontal','method'=>'get'])!!}
{!! Form::label('customer_name', App\Language::trans('Customer'), ['class'=>'control-label col-md-2']) !!}
{!! Form::select('customer_name', App\Ticket::customer_name_combobox(), null, ['class'=>'form-control']) !!} {!!$errors->first('customer_name', '')!!}
{!! Form::label('id', App\Language::trans('Document'), ['class'=>'control-label col-md-6']) !!}
{!! Form::select('id', App\Ticket::combobox(), null, ['class'=>'form-control']) !!} {!!$errors->first('id', '')!!}
{!! Form::label('date_started', App\Language::trans('From'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('date_started', null, ['class'=>'form-control']) !!} {!!$errors->first('date_started', '')!!}
{!! Form::label('date_ended', App\Language::trans('To'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('date_ended', null, ['class'=>'form-control']) !!} {!!$errors->first('date_ended', '')!!}
{!! Form::label('sort_by', App\Language::trans('Sort By'), ['class'=>'control-label col-md-6']) !!}
{!! Form::select('sort_by', App\Ticket::sort_by_combobox(), null, ['class'=>'form-control']) !!} {!!$errors->first('sort_by', '')!!}

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

@foreach($cols as $col) @if($col == 'id') @elseif(str_contains($col, '_id')) @else @endif @endforeach @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @if($key == 'complaint') @elseif($key != 'id') @endif @endforeach @endforeach
#{{App\Language::trans(ucwords(str_replace('_', ' ', str_replace('_id', '', $col))))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$index+1}}{{$row->display_substr($value)}}{{$value}} {{App\Language::trans('Edit')}} | {{App\Language::trans('View')}} | {{App\Language::trans('Solve')}} | {{App\Language::trans('Del')}}
@endsection @section('script') @endsection