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> |
{{-- Kế thừa layout gốc --}} |
||||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> |
@extends('layouts.app') |
||||||
|
|
||||||
<head> |
@section('content') |
||||||
<meta charset="utf-8"> |
{{ $slot }} |
||||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
@endsection |
||||||
<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> |
|
||||||
|
@ -1,5 +1,7 @@ |
|||||||
<x-api::layouts.master> |
<x-api::layouts.master> |
||||||
<h1>Hello World</h1> |
<div class="card"> |
||||||
|
<h1>Hello World</h1> |
||||||
|
|
||||||
<p>Module: {!! config('api.name') !!}</p> |
<p>Module: {!! config('api.name') !!}</p> |
||||||
|
</div> |
||||||
</x-api::layouts.master> |
</x-api::layouts.master> |
||||||
|
Loading…
Reference in new issue