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