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,39 @@
|
||||
@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 $brand)
|
||||
<tr>
|
||||
<td class="align-middle">
|
||||
@can('brands_view')
|
||||
<a href="{{route('brands.show',['brand' => $brand])}}" class="btn btn-success">
|
||||
{{$brand->name}}
|
||||
</a>
|
||||
@else
|
||||
{{$brand->name}}
|
||||
@endcan
|
||||
</td>
|
||||
<td>
|
||||
@can('brands_edit')
|
||||
<a href="{{route('brands.edit',['brand' => $brand])}}" 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,41 @@
|
||||
<h2>@lang('models')</h2>
|
||||
@if(count($data->models) >= 1)
|
||||
<table>
|
||||
@foreach($data->models as $model)
|
||||
<tr>
|
||||
<td>
|
||||
@can('models_view')
|
||||
<a href="{{route('models.show',['model' => $model])}}" class="btn btn-success" target="_blankd">{{$model->name}}</a>
|
||||
@else
|
||||
{{$model->name}}
|
||||
@endcan
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@else
|
||||
@lang('no_amount') @lang('models')
|
||||
@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')
|
||||
{{$product->barcode}}
|
||||
@endif
|
||||
</a> </td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@else
|
||||
@lang('no_amount') @lang('products')
|
||||
@endif
|
||||
Reference in New Issue
Block a user