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,47 @@
|
||||
@extends('Layouts.master')
|
||||
|
||||
@section('content')
|
||||
<div class="main-container pb-4">
|
||||
@include('Partials.Pages.index_top')
|
||||
<table class="table table-striped table-hover mt-4">
|
||||
<thead>
|
||||
<th>@lang('name')</th>
|
||||
<th>@lang('action')</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($data as $object)
|
||||
<tr>
|
||||
<td>
|
||||
@can('cabelCategories_view')
|
||||
<a href="{{route('cabelCategories.show',['cabelCategory' => $object])}}" class="btn btn-success">
|
||||
{{$object->name}}
|
||||
</a>
|
||||
@else
|
||||
{{$object->name}}
|
||||
@endcan
|
||||
</td>
|
||||
<td>
|
||||
@can(Request::segment(1).'_edit')
|
||||
<a href="{{route(Request::segment(1).'.edit',[$data_name => $object])}}" class="btn btn-outline-success">
|
||||
@lang('edit')
|
||||
</a>
|
||||
@endcan
|
||||
@can(Request::segment(1).'_restore')
|
||||
<a href="{{route(Request::segment(1).'.restore',[$data_name => $object])}}" class="btn btn-outline-success">
|
||||
@lang('restore')
|
||||
</a>
|
||||
@endcan
|
||||
@can(Request::segment(1).'_delete_force')
|
||||
@include('Partials.Form.Input.Modal.delete_force')
|
||||
@endcan
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
@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,38 @@
|
||||
@extends('Layouts.master')
|
||||
|
||||
@section('content')
|
||||
<div class="main-container pb-4">
|
||||
@include('Partials.Pages.index_top')
|
||||
<table class="table table-striped table-hover mt-4">
|
||||
<thead>
|
||||
<th>@lang('name')</th>
|
||||
<th>@lang('action')</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($data as $object)
|
||||
<tr>
|
||||
<td>
|
||||
@can('cabelCategories_view')
|
||||
<a href="{{route('cabelCategories.show',['cabelCategory' => $object])}}" class="btn btn-success">
|
||||
{{$object->name}}
|
||||
</a>
|
||||
@else
|
||||
{{$role->name}}
|
||||
@endcan
|
||||
</td>
|
||||
<td>
|
||||
@can('cabelCategories_edit')
|
||||
<a href="{{route('cabelCategories.edit',['cabelCategory' => $object])}}"
|
||||
class="btn btn-outline-success">@lang('edit')</a>
|
||||
@endcan
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</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,20 @@
|
||||
<h2>@lang('cabels')</h2>
|
||||
@if(count($data->cabels) >= 1)
|
||||
<table>
|
||||
@foreach($data->cabels as $cabel)
|
||||
<tr>
|
||||
<td>
|
||||
@can('cabels_view')
|
||||
<a href="{{route('cabels.show',['cabel' => $cabel])}}" class="btn btn-success" target="_blank">
|
||||
{{$cabel->category->name}}.{{$cabel->name}}
|
||||
</a>
|
||||
@else
|
||||
{{$cabel->category->name}}.{{$cabel->name}}
|
||||
@endcan
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@else
|
||||
@lang('no_amount') @lang('products')
|
||||
@endif
|
||||
Reference in New Issue
Block a user