@extends('backend.layouts_backend.master2')
@section('title')
InActive Brands
@endsection
@section('content')
{{-- header --}}
InActive Brands
@if (Auth::user()->can('brand-list'))
@endif
{{-- end header --}}
@if (session('messagesave'))
{{ session('messagesave') }}
@endif
{{-- alert delete item --}}
@if (session('messagedelete'))
{{ session('messagedelete') }}
{{--
{{ session('messagedelete')}}
--}}
@endif
{{-- alert update item --}}
@if (session('messageupdate'))
{{ session('messageupdate') }}
@endif
#Id |
Brand Code |
Image |
Brand Status |
Brand Name |
Use Status |
Registered On |
Created By |
Action |
@foreach ($brands as $key => $brand)
{{ $key + 1 ?? 'N/A' }} |
{{ $brand->brand_code ?? 'N/A' }} |
|
@if ($brand->brand_status == 1)
{{ get_status_message($brand->brand_status) ?? '' }}
@elseif($brand->brand_status == 2)
{{ get_status_message($brand->brand_status) ?? '' }}
@else
No Status
@endif
|
{{ $brand->brand_name ?? 'N/A' }} |
@php
$checkBrandInUse = $brand->products()->exists();
@endphp
@if ($checkBrandInUse)
In Use
@else
Not In Use
@endif
|
{{ short_date($brand->created_at) ?? 'N/A' }} |
@php
$user = \App\Models\User::find($brand->created_by);
@endphp
{{ $user->name ?? 'N/A' }} |
@if (Auth::user()->can('brand-show'))
@endif
@if (Auth::user()->can('brand-delete'))
@endif
{{-- restore --}}
@if (Auth::user()->can('restore-inactive-brand'))
@if (!$checkBrandInUse)
@endif
@endif
|
{{-- view details modal --}}
{{-- end of view modal --}}
@endforeach
@endsection