original_string: public function get_template_name($slug)
      {
          $slug = \str_replace(
              [
                  Config::get('theme.templates_directory') . '/',
                  $this->blade->getFileExtension(),
              ],
              '',
              $slug
          );
  
          if (\strpos($slug, 'views/') !== 0) {
              $slug = 'views.' . $slug;
          }
  
          return $this->bladeify($slug);
      }
code: public function get_template_name($slug)
      {
          $slug = \str_replace(
              [
                  Config::get('theme.templates_directory') . '/',
                  $this->blade->getFileExtension(),
              ],
              '',
              $slug
          );
  
          if (\strpos($slug, 'views/') !== 0) {
              $slug = 'views.' . $slug;
          }
  
          return $this->bladeify($slug);
      }
code_tokens: public function get_template_name ( $ slug ) { $ slug = \ str_replace ( [ Config :: get ( 'theme.templates_directory' ) . '/' , $ this -> blade -> getFileExtension ( ) , ] , '' , $ slug ) ; if ( \ strpos ( $ slug , 'views/' ) !== 0 ) { $ slug = 'views.' . $ slug ; } return $ this -> bladeify ( $ slug ) ; }
docstring: Generate the template file name from the slug.
  
  @since 1.0.0
  
  @param  string $slug The slug for the generic template.
  @return string
docstring_tokens: Generate the template file name from the slug .