@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')) @endif {{-- alert delete item --}} @if (session('messagedelete')) {{--
{{ session('messagedelete')}}
--}} @endif {{-- alert update item --}} @if (session('messageupdate')) @endif
@foreach ($brands as $key => $brand) @php $user = \App\Models\User::find($brand->created_by); @endphp {{-- view details modal --}} {{-- end of view modal --}} @endforeach
#Id Brand Code Image Brand Status Brand Name Use Status Registered On Created By Action
{{ $key + 1 ?? 'N/A' }} {{ $brand->brand_code ?? 'N/A' }} preview @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' }}{{ $user->name ?? 'N/A' }}
@if (Auth::user()->can('brand-show')) @endif @if (Auth::user()->can('brand-delete'))
@csrf @method('DELETE')
@endif {{-- restore --}} @if (Auth::user()->can('restore-inactive-brand')) @if (!$checkBrandInUse)
@csrf @method('PATCH')
@endif @endif

@endsection