Initial Commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
@extends('Layouts.master')
|
||||
|
||||
@section('content')
|
||||
@include('Partials.Pages.create_page')
|
||||
@endsection
|
||||
|
||||
@section('scripting')
|
||||
@endsection
|
||||
@@ -0,0 +1,8 @@
|
||||
@extends('Layouts.master')
|
||||
|
||||
@section('content')
|
||||
@include('Partials.Pages.deleted_page')
|
||||
@endsection
|
||||
|
||||
@section('scripting')
|
||||
@endsection
|
||||
@@ -0,0 +1,8 @@
|
||||
@extends('Layouts.master')
|
||||
|
||||
@section('content')
|
||||
@include('Partials.Pages.edit_page')
|
||||
@endsection
|
||||
|
||||
@section('scripting')
|
||||
@endsection
|
||||
@@ -0,0 +1 @@
|
||||
@include('Partials.Form.Input.name')
|
||||
@@ -0,0 +1,41 @@
|
||||
@extends('Layouts.master')
|
||||
|
||||
@section('content')
|
||||
<div class="main-container pb-4">
|
||||
@include('Partials.Pages.index_top')
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>@lang('name')</th>
|
||||
<th>@lang('action')</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($data as $category)
|
||||
<tr>
|
||||
<td class="align-middle">
|
||||
@can('categories_view')
|
||||
<a href="{{route('categories.show',['category' => $category])}}" class="btn btn-success">
|
||||
{{$category->name}}
|
||||
</a>
|
||||
@else
|
||||
{{$category->name}}
|
||||
@endcan
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@can('categories_edit')
|
||||
<a href="{{route('categories.edit',['category' => $category])}}"
|
||||
class="btn btn-outline-success">
|
||||
@lang('edit')
|
||||
</a>
|
||||
@endcan
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@include('Partials.Pages.display')
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('scripting')
|
||||
@endsection
|
||||
@@ -0,0 +1,8 @@
|
||||
@extends('Layouts.master')
|
||||
|
||||
@section('content')
|
||||
@include('Partials.Pages.show_page')
|
||||
@endsection
|
||||
|
||||
@section('scripting')
|
||||
@endsection
|
||||
@@ -0,0 +1,37 @@
|
||||
<h2>@lang('subcategories')</h2>
|
||||
@if(count($data->subcategories) >= 1)
|
||||
<table>
|
||||
@foreach($data->subcategories as $subcategory)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{route('subcategories.show',['subcategory' => $subcategory])}}" class="btn btn-success" target="_blankd">{{$subcategory->name}}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@else
|
||||
@lang('no_amount') @lang('subcategories')
|
||||
@endif
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>@lang('products')</h2>
|
||||
@if(count($data->products) >= 1)
|
||||
<table>
|
||||
@foreach($data->products as $product)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{route('products.show',['product' => $product])}}" class="btn btn-success" target="_blank">
|
||||
@if(config('app.barcode_mode') == 'dynamic')
|
||||
{{$product->category->name}}.@if(!empty($product->subcategory->name)){{$product->subcategory->name}}.@endif{{$product->brand->name}}.{{$product->model->name}}@if(!empty($product->name)).{{$product->name}}@endif
|
||||
@endif
|
||||
@if(config('app.barcode_mode') == 'static')
|
||||
{{$tracked->loanable->barcode}}
|
||||
@endif
|
||||
</a> </td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@else
|
||||
@lang('no_amount') @lang('products')
|
||||
@endif
|
||||
Reference in New Issue
Block a user