@switch($tracked->loanable_type)
@case('App\Models\Product')
@lang('product')
@break
@case('App\Models\Cabel')
@lang('cabel')
@break
@endswitch
|
@switch($tracked->loanable_type)
@case('App\Models\Product')
@if(config('app.barcode_mode') == 'dynamic')
{{$tracked->loanable->category->name}}.@if(!empty($tracked->loanable->subcategory->name)){{$tracked->loanable->subcategory->name}}.@endif{{$tracked->loanable->brand->name}}.{{$tracked->loanable->model->name}}@if(!empty($tracked->loanable->name)).{{$tracked->loanable->name}}@endif
@endif
@if(config('app.barcode_mode') == 'static')
{{$tracked->loanable->barcode}}
@endif
@break
@case('App\Models\Cabel')
{{$tracked->loanable->category->name}}.{{$tracked->loanable->name}}
@break
@endswitch
|
{{$tracked->amount}}
|
@endif
@endif
@endif
@endforeach