parent
5497b12c17
commit
5a6de5c785
4 changed files with 23 additions and 30 deletions
@ -0,0 +1,13 @@ |
||||
<?php |
||||
|
||||
namespace Modules\Api\View\Components\Layouts; |
||||
|
||||
use Illuminate\View\Component; |
||||
|
||||
class Master extends Component |
||||
{ |
||||
public function render() |
||||
{ |
||||
return view('api::components.layouts.master'); |
||||
} |
||||
} |
@ -1,29 +1,6 @@ |
||||
<!DOCTYPE html> |
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> |
||||
{{-- Kế thừa layout gốc --}} |
||||
@extends('layouts.app') |
||||
|
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
<meta name="csrf-token" content="{{ csrf_token() }}"> |
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
||||
|
||||
<title>Api Module - {{ config('app.name', 'Laravel') }}</title> |
||||
|
||||
<meta name="description" content="{{ $description ?? '' }}"> |
||||
<meta name="keywords" content="{{ $keywords ?? '' }}"> |
||||
<meta name="author" content="{{ $author ?? '' }}"> |
||||
|
||||
<!-- Fonts --> |
||||
<link rel="preconnect" href="https://fonts.bunny.net"> |
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" /> |
||||
|
||||
{{-- Vite CSS --}} |
||||
{{-- {{ module_vite('build-api', 'resources/assets/sass/app.scss') }} --}} |
||||
</head> |
||||
|
||||
<body> |
||||
{{ $slot }} |
||||
|
||||
{{-- Vite JS --}} |
||||
{{-- {{ module_vite('build-api', 'resources/assets/js/app.js') }} --}} |
||||
</body> |
||||
@section('content') |
||||
{{ $slot }} |
||||
@endsection |
||||
|
@ -1,5 +1,7 @@ |
||||
<x-api::layouts.master> |
||||
<h1>Hello World</h1> |
||||
<div class="card"> |
||||
<h1>Hello World</h1> |
||||
|
||||
<p>Module: {!! config('api.name') !!}</p> |
||||
</div> |
||||
</x-api::layouts.master> |
||||
|
Loading…
Reference in new issue