@extends(backpack_view('blank')) @php $entityName = strtolower(class_basename($crud->getModel())); $tableId = $entityName . 'Table'; @endphp @section('header')

Préparation de versement pour le film : {{ $film->fulltitle }}

@if ($crud->buttons()->where('stack', 'top_search')->count()) @endif
@endsection @section('content')

{{ $film->fulltitle }}

@foreach ($film->rightholders as $rightholder)
@if ($rightholder->rightholder->is_dead)
Décédé(e)
@endif

{{ $rightholder->title }}

Répartition
{{ $rightholder->shareAmountTextInPercent }}
@php $address = $rightholder->rightholder->addresses->first(); @endphp @if ($address)
Adresse @if ($address->is_main)
ADM
@endif
{{ $address->streetAddress }}
{{ $address->postal_code }} {{ $address->locality }} @if ($address->country_id)
{{ $address->country->name }} @endif
@endif
@endforeach
{{-- Default box --}}

Selection des ayant droits

@foreach ($film->rightholders as $rightholder)
@endforeach
{{-- THE ACTUAL CONTENT --}}
{!! $crud->getSubheading() ?? '' !!} {{-- --}} tri par nom ↓
@if ($crud->buttons()->where('stack', 'bottom')->count()) @include('crud::inc.button_stack', ['stack' => 'bottom']) @endif
@include('admin.crud.inc.datatable')
@endsection @section('after_styles') {{-- CRUD LIST CONTENT - crud_list_styles stack --}} @stack('crud_list_styles') @endsection @section('after_scripts') @php $entityName = strtolower(class_basename($crud->getModel())); $tableId = $entityName . 'Table'; $table = new \App\Models\DatatableSetting($tableId, [], '/' . $crud->route, url($crud->route)); $table->setHeading('My Heading'); $table->setDefaultPageLength(10); $table->setGetPageLengthMenu([10, 25, 50, 100]); $table->setShowEntryCount(false); $table->setIsPersistent(false); $table->setFixedHeader(true); $table->setHasBulkAction(true); $table->removeColumnDefs('-1'); $datatables = [$table]; @endphp @include('admin.crud.inc.datatables_logic') @stack('crud_list_scripts') @endsection