@extends('admin::_layouts.content',['selectedMenu'=>$cMenuKey])
@section('content')
@layoutmodule('up')
@layoutmodule('up-content')
@if($cFilterable)
{!! FilterGenerator::render() !!}
@endif
@if($cOrderable)
@check($cEditPermission)
{!! html()->form('POST',route($cOrderableRoute))->open() !!}
@endcheck
@endif
@if($cSortable)
@check($cEditPermission)
|
@endcheck
@endif
@if($cBatchDelete)
@check($cDeletePermission)
{!! html()->checkbox('select-all')->class('form-check-input')->addClass('position-static')->addClass('select-all-list')->checked('') !!}
|
@endcheck
@endif
@if($cOrderable)
@check($cEditPermission)
Sıra |
@endcheck
@endif
@foreach(($cFields ?? []) as $fieldKey => $fieldData)
@if((!isset($fieldData['permission'])) || (isset($fieldData['permission']) && checkPermission($fieldData['permission'])))
@if(config('nette-lang.enable') && ($fieldData['multilang'] ?? false))
@foreach(adminlangs() as $langKey => $lang)
{{$fieldData['name'] . '('.$lang.')'}}
@if($fieldData['sortable'] ?? false)
{!! _sorting($fieldKey) !!}
@endif
|
@endforeach
@else
{{$fieldData['name']}}
@if($fieldData['sortable'] ?? false)
{!! _sorting($fieldKey) !!}
@endif
|
@endif
@endif
@endforeach
@if($cIndexActions)
İşlemler |
@endif
@foreach($items as $item)
@if($cSortable)
@check($cEditPermission)
|
|
@endcheck
@endif
@if($cBatchDelete)
@check($cDeletePermission)
@if(!$item->lock)
{!! html()->checkbox('selection')
->class('form-check-input')
->addClass('position-static')
->addClass('selection')
->data('id',$item->id) !!}
@endif
|
@endcheck
@endif
@if($cOrderable)
@check($cEditPermission)
{{ html()->text('order_number['.$item->id.']')->class('form-control')->value(($item->$cOrderableColumn) ?? 0) }}
|
@endcheck
@endif
@foreach(($cFields ?? []) as $fieldKey=>$fieldData)
@if(config('nette-lang.enable') && ($fieldData['multilang'] ?? false))
@foreach(adminlangs() as $langKey => $lang)
{{ $item->{localizedAttributeName($fieldKey,$langKey)} }} |
@endforeach
@else
@if((!isset($fieldData['permission'])) || (isset($fieldData['permission']) && checkPermission($fieldData['permission'])))
@if(isset($cFieldMutators[$fieldKey]))
@if(is_array($cFieldMutators[$fieldKey]))
@if(isset($cFieldMutators[$fieldKey]['method']) && isset($cFieldMutators[$fieldKey]['parameter']))
@if($cFieldMutators[$fieldKey]['parameter'] == 'object')
{!! ($cFieldMutators[$fieldKey]['method'])($item ?? '') !!}
@else
{!! $cFieldMutators[$fieldKey](($cFieldMutators[$fieldKey]['parameter']) ?? '') !!}
@endif
@else
{!! $cFieldMutators[$fieldKey](($item->$fieldKey) ?? '') !!}
@endif
@else
{!! $cFieldMutators[$fieldKey](($item->$fieldKey) ?? '') !!}
@endif
@else
{{($item->$fieldKey) ?? ''}}
@endif
|
@endif
@endif
@endforeach
@if($cIndexActions)
@if($cShow)
{!! showbtn($cShowRoute,['id'=>$item->id]) !!}
@endif
@if($cEdit)
@check($cEditPermission)
{!! editbtn($cEditRoute,['id'=>$item->id]) !!}
@endcheck
@endif
@if($cPublish)
@check($cPublishPermission)
{!! publishbtn($cPublishRoute,['id'=>$item->id],$item->status) !!}
@endcheck
@endif
@if($cDelete)
@check($cDeletePermission)
@if(!$item->lock)
{!! deletebtn($cDeleteRoute,['id'=>$item->id]) !!}
@endif
@endcheck
@endif
{{----}}
{{----}}
|
@endif
@endforeach
@if($cBatchDelete)
@check($cDeletePermission)
{!! batchdeletebtn($cBatchDeleteRoute) !!}
@endcheck
@endif
@if($cOrderable)
@check($cEditPermission)
{!! batchorderbtn() !!}
@endcheck
@endif
@if($items instanceof \Illuminate\Pagination\LengthAwarePaginator )
@endif
@layoutmodule('table-footer')
@if($cOrderable)
@check($cEditPermission)
{!! html()->form()->close() !!}
@endcheck
@endif
@layoutmodule('bottomcontent')
@layoutmodule('bottom')
@endsection