@extends('companyuser::layouts.master') @section('title', __('attachments::general-attachments.general_attachments')) @section('extra_styles') @endsection @section('breadcrumb') @endsection @section('content')

@lang('superadmin::User.users')

@can('attachments.general-attachments.create') @endcan
@include('superadmin::errors.lists')
@csrf
@foreach ($attachments as $attachment) @endforeach
@lang('attachments::general-attachments.title') @lang('attachments::general-attachments.customer') @lang('attachments::general-attachments.supplier') @lang('attachments::general-attachments.added_by') @lang('attachments::general-attachments.size') @lang('Actions')
{{ $attachment->title }} @if ($attachment->customer) {{ $attachment->customer->name }} @endif @if ($attachment->supplier) {{ $attachment->supplier->name }} @endif @if ($attachment->addedBy && $attachment->addedBy->id == auth()->id()) @lang('attachments::general-attachments.you') @else {{ $attachment->addedBy->uname }} @endif {{ $attachment->size }} @can('attachments.general-attachments.view') @endcan @can('purchases.bills.create') @endcan @can('purchases.expenses.create') @endcan @can('sales.invoices.create') @endcan @can('attachments.general-attachments.delete') {{-- delete btn --}} @endcan
@endsection @section('extra_scripts') @endsection